FileDocCategorySizeDatePackage
ProgressMonitorExample.javaAPI DocExample1080Mon Nov 09 12:45:54 GMT 1998None

ProgressMonitorExample

public class ProgressMonitorExample extends JPanel implements ActionListener

Fields Summary
static ProgressMonitor
pbar
static int
counter
Constructors Summary
public ProgressMonitorExample()


    
    super(true);
    pbar = new ProgressMonitor(this, "Monitoring Progress",
        "Initializing . . .", 0, 100);

    // Fire a timer every once in a while to update the progress
    Timer timer = new Timer(500, this);
    timer.start();
  
Methods Summary
public voidactionPerformed(java.awt.event.ActionEvent e)


    // Invoked by the timer every half second. Simply place
    // the progress monitor update on the event queue.

    SwingUtilities.invokeLater(new Update());
  
public static voidmain(java.lang.String[] args)

    new ProgressMonitorExample();