ProgressMonitor: setMillisToDecideToPopup(int millisToDecideToPopup) : ProgressMonitor « javax.swing « Java by API






ProgressMonitor: setMillisToDecideToPopup(int millisToDecideToPopup)

  


import javax.swing.JFrame;
import javax.swing.ProgressMonitor;
import javax.swing.UIManager;

public class Main {
  public static void main(String[] argv) throws Exception {
    String message = "Description of Task";
    String note = "subtask";
    String title = "Task Title";
    UIManager.put("ProgressMonitor.progressText", title);
    int min = 0;
    int max = 100;
    JFrame component = new JFrame();
    ProgressMonitor pm = new ProgressMonitor(component, message, note, min, max);

    int millisToPopup = pm.getMillisToPopup(); // 2000

    int millisToDecideToPopup = pm.getMillisToDecideToPopup(); // 500

    pm.setMillisToPopup(0);
    pm.setMillisToDecideToPopup(0);

  }
}

   
    
  








Related examples in the same category

1.ProgressMonitor.progressText
2.new ProgressMonitor(Component p, Object m, String n, int min, int max)
3.ProgressMonitor: getMillisToDecideToPopup()
4.ProgressMonitor: getMillisToPopup()
5.ProgressMonitor: isCanceled()
6.ProgressMonitor: setNote(String note)
7.ProgressMonitor: setMillisToPopup(int millisToPopup)
8.ProgressMonitor: setProgress(int nv)