javax.swing.ProgressMonitor.getMaximum()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(115)

本文整理了Java中javax.swing.ProgressMonitor.getMaximum()方法的一些代码示例,展示了ProgressMonitor.getMaximum()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ProgressMonitor.getMaximum()方法的具体详情如下:
包路径:javax.swing.ProgressMonitor
类名称:ProgressMonitor
方法名:getMaximum

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());

相关文章