本文整理了Java中javax.swing.ProgressMonitor.close()
方法的一些代码示例,展示了ProgressMonitor.close()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ProgressMonitor.close()
方法的具体详情如下:
包路径:javax.swing.ProgressMonitor
类名称:ProgressMonitor
方法名:close
暂无
代码示例来源:origin: skylot/jadx
@Override
public void run() {
try {
decompiler.getArgs().setRootDir(dir);
ThreadPoolExecutor ex = (ThreadPoolExecutor) decompiler.getSaveExecutor();
ex.shutdown();
while (ex.isTerminating()) {
long total = ex.getTaskCount();
long done = ex.getCompletedTaskCount();
progressMonitor.setProgress((int) (done * 100.0 / (double) total));
Thread.sleep(500);
}
progressMonitor.close();
LOG.info("decompilation complete, freeing memory ...");
decompiler.getClasses().forEach(JavaClass::unload);
LOG.info("done");
} catch (InterruptedException e) {
LOG.error("Save interrupted", e);
Thread.currentThread().interrupt();
}
}
};
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
@Override
public void done() {
m_progress.close();
if (m_error != null) {
displayErrorDialog("There was a problem establishing the package\n"
+ "meta data cache. We'll try to use the repository" + "directly.",
m_error);
}
}
}
代码示例来源:origin: MarginallyClever/Makelangelo-software
@Override
public void done() {
if(pm!=null) pm.close();
//System.out.println("swingWorker ended");
swingWorker=null;
}
};
代码示例来源:origin: com.fifesoft.rtext/fife.common
/**
* Hides the progress monitor, if it is visible.
*/
@Override
public void pasteOperationCompleted(int pasteCount) {
monitor.close();
}
代码示例来源:origin: MinecraftForge/Installer
@Override
public void close()
{
monitor.close();
}
};
代码示例来源:origin: Waikato/weka-trunk
@Override
public void done() {
m_progress.close();
if (m_error != null) {
displayErrorDialog("There was a problem establishing the package\n"
+ "meta data cache. We'll try to use the repository" + "directly.",
m_error);
}
}
}
代码示例来源:origin: cytoscape.coreplugins/rfilters
public void run() {
pm.close();
}
};
代码示例来源:origin: LibraryOfCongress/bagger
public void done() {
this.done = true;
progressMonitor.close();
}
代码示例来源:origin: org.boofcv/io
public void run() {
monitor.close();
}});
}
代码示例来源:origin: cflint/CFLint
@Override
public void close() {
progressMonitor.close();
}
代码示例来源:origin: cflint/CFLint
@Override
public void close() {
progressMonitor.close();
}
代码示例来源:origin: bcdev/beam
public void onReadEnded() {
progressMonitor.close();
}
代码示例来源:origin: Galigator/openllet
@Override
public void taskFinished()
{
super.taskFinished();
_monitor.close();
}
代码示例来源:origin: Galigator/openllet
@Override
public void taskFinished()
{
super.taskFinished();
_monitor.close();
}
代码示例来源:origin: net.sourceforge.owlapi/pellet-core-ignazio1977
public void taskFinished() {
super.taskFinished();
monitor.close();
}
代码示例来源:origin: com.github.ansell.pellet/pellet-common
public void taskFinished() {
super.taskFinished();
monitor.close();
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-debugger-common2
/**
* Do the actual cancelProgress work. Assumes we're called from a
* safe (read: AWT) thread.
*/
private void cancelProgressSameThread() {
StatusDisplayer.getDefault().setStatusText(""); // NOI18N
if (progressMonitor != null) {
progressMonitor.close();
progressMonitor = null;
}
}
代码示例来源:origin: cytoscape.coreplugins/rfilters
public void run() {
if (pm.isCanceled()) {
applyFilterCanceled = true;
pm.close();
} else {
dCount = ((double) progressCount / (double) pm.getMaximum());
progressNote = ((int) (dCount * 100.0) + "% complete");
pm.setProgress(progressCount);
pm.setNote(progressNote);
}
}
};
代码示例来源:origin: org.boofcv/demonstrations
public void run() {
progressMonitor.close();
scorePanel.setScorer(controlPanel.getSelected());
scorePanel.setLocation(leftPts, rightPts, leftDesc, rightDesc);
repaint();
}
});
代码示例来源:origin: org.vesalainen.dsql/dsql
@Override
protected Void doInBackground() throws Exception
{
ProgressMonitor mon = new ProgressMonitor(frame, I18n.get("WAIT"), "", 0, 100);
mon.setNote("");
statement.getEngine().createProgressMonitor(mon);
fetchResult = statement.execute();
mon.close();
return null;
}
内容来源于网络,如有侵权,请联系作者删除!