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

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

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

ProgressMonitor.setNote介绍

暂无

代码示例

代码示例来源:origin: dermotte/LIRE

pm.setNote("Starting clustering");
pm.setNote("Step 1 finished");
pm.setNote("Step 2 finished");
if (pm != null) { // set to XX of 100 after second step.
  pm.setProgress(cStep * 3 + 5);
  pm.setNote("Step " + cStep + " finished");

代码示例来源:origin: dermotte/LIRE

pm.setNote("Starting clustering");
pm.setNote("Step 1 finished");
pm.setNote("Step 2 finished");
if (pm != null) { // set to XX of 100 after second step.
  pm.setProgress(cStep * 3 + 5);
  pm.setNote("Step " + cStep + " finished");

代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql

public void run()
  {
    progressMonitor.setNote(note);
  }
});

代码示例来源:origin: MinecraftForge/Installer

@Override
public void setNote(String note)
{
  System.out.println(note);
  monitor.setNote(note);
}

代码示例来源:origin: org.boofcv/demonstrations

public void setMessage( final int state , final String message ) {
  SwingUtilities.invokeLater(() -> {
    monitor.setProgress(state);
    monitor.setNote(message);
  });
}

代码示例来源:origin: net.sf.jt400/jt400

/**
 * Updates the progress Bar.
 * @param num   The number of records processed.
 */
public void updateProgress(int num) {
  progressMonitor.setProgress(num);
  progressMonitor.setNote((int)(((long)num)*100/((long)total)) + endmsg);
}

代码示例来源:origin: org.boofcv/demonstrations

public void run() {
    progressMonitor.setProgress(progress + 1);
    progressMonitor.setNote("Describing");
  }
});

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

@Override
public void makeProgress(String progressMessage) {
 m_progress.setNote(progressMessage);
 m_progressCount++;
 m_progress.setProgress(m_progressCount);
}

代码示例来源:origin: protegeproject/protege

private void adjustProgress(String taskDescription, int taskCount) {
  if (monitor.isCanceled()) {
    throw new ExportCancelledException();
  }
  monitor.setNote(taskDescription);
  monitor.setProgress(taskCount);
}

代码示例来源:origin: edu.stanford.protege/org.protege.editor.owl

private void adjustProgress(String taskDescription, int taskCount) {
  if (monitor.isCanceled()) {
    throw new ExportCancelledException();
  }
  monitor.setNote(taskDescription);
  monitor.setProgress(taskCount);
}

代码示例来源:origin: org.apache.uima/uimaj-tools

/**
 * Check progress monitor.
 */
private void checkProgressMonitor() {
 // if user has clicked cancel, abort
 if (progressMonitor.isCanceled()) {
  progressMonitor.setNote("Cancelling...");
  mCPM.stop();
  aborted();
 }
}

代码示例来源:origin: org.protege/protege-editor-owl

private void adjustProgress(String taskDescription, int taskCount) {
  if (monitor.isCanceled()) {
    throw new ExportCancelledException();
  }
  monitor.setNote(taskDescription);
  monitor.setProgress(taskCount);
}

代码示例来源:origin: edu.stanford.protege/protege-editor-owl

private void adjustProgress(String taskDescription, int taskCount) {
  if (monitor.isCanceled()) {
    throw new ExportCancelledException();
  }
  monitor.setNote(taskDescription);
  monitor.setProgress(taskCount);
}

代码示例来源:origin: cflint/CFLint

@Override
public void startedProcessing(final String srcidentifier) {
  if (progressMonitor.isCanceled()) {
    throw new RuntimeException("Cancelled by user");
  }
  if (indeterminate && fileCounter + 1 >= totalFileCount) {
    totalFileCount += 10;
    progressMonitor.setMaximum(totalFileCount);
  }
  progressMonitor.setProgress(fileCounter++);
  progressMonitor.setNote("[" + fileCounter + "/" + totalFileCount + "] processing " + shorten(srcidentifier));
}

代码示例来源: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: protegeproject/protege

public Set<A> createAxioms(OWLDataFactory dataFactory, OWLReasoner reasoner) {
  if (progressMonitor.isCanceled()) {
    throw new ExportCancelledException();
  }
  progressMonitor.setNote(delegate.getLabel());
  progressMonitor.setProgress(task);
  return delegate.createAxioms(dataFactory, reasoner);
}

代码示例来源:origin: edu.stanford.protege/protege-editor-owl

public Set<A> createAxioms(OWLDataFactory dataFactory, OWLReasoner reasoner) {
  if (progressMonitor.isCanceled()) {
    throw new ExportCancelledException();
  }
  progressMonitor.setNote(delegate.getLabel());
  progressMonitor.setProgress(task);
  return delegate.createAxioms(dataFactory, reasoner);
}

代码示例来源:origin: org.protege/protege-editor-owl

public Set<A> createAxioms(OWLOntologyManager manager, OWLReasoner reasoner) {
  if (progressMonitor.isCanceled()) {
    throw new ExportCancelledException();
  }
  progressMonitor.setNote(delegate.getLabel());
  progressMonitor.setProgress(task);
  return delegate.createAxioms(manager, reasoner);
}

代码示例来源:origin: net.sf.squirrel-sql.plugins/dbcopy

public void run()
 {
   if (pm.isCanceled())
   {
   }
   // i18n[CopyProgressMonitor.analyzingTableMessage=Analyzing table ]
   pm.setNote(getMessage("CopyProgressMonitor.analyzingTableMessage") + e.getTableName());
   pm.setProgress(e.getTableNumber());
 }
};

代码示例来源: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;
}

相关文章