Example usage for javax.swing ProgressMonitor getMillisToDecideToPopup

List of usage examples for javax.swing ProgressMonitor getMillisToDecideToPopup

Introduction

In this page you can find the example usage for javax.swing ProgressMonitor getMillisToDecideToPopup.

Prototype

public int getMillisToDecideToPopup() 

Source Link

Document

Returns the amount of time this object waits before deciding whether or not to popup a progress monitor.

Usage

From source file:Main.java

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;/*from   w w w .  j  av  a  2  s .  co  m*/
    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);

}