本文整理了Java中javax.swing.ProgressMonitor.getMaximum()
方法的一些代码示例,展示了ProgressMonitor.getMaximum()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ProgressMonitor.getMaximum()
方法的具体详情如下:
包路径:javax.swing.ProgressMonitor
类名称:ProgressMonitor
方法名:getMaximum
暂无
代码示例来源: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: net.sf.squirrel-sql.plugins/dbcopy
public void run()
{
if (pm != null)
{
pm.setProgress(pm.getMaximum());
}
prov = e.getSessionInfoProvider();
int numTables = prov.getSourceDatabaseObjects().size();
int[] tableCounts = e.getTableCounts();
createProgressDialog();
DualProgressBarDialog.setBottomBarMinMax(0, numTables);
DualProgressBarDialog.setBottomBarValue(0);
DualProgressBarDialog.setTopBarValue(0);
DualProgressBarDialog.setTableCounts(tableCounts);
}
};
代码示例来源:origin: net.sf.squirrel-sql.plugins/dbcopy
showMessageDialog(message, title, JOptionPane.ERROR_MESSAGE);
if (pm != null) {
pm.setProgress(pm.getMaximum());
内容来源于网络,如有侵权,请联系作者删除!