All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.Widgets.BusyBox

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----Acme.Widgets.BusyBox

public class BusyBox
extends Dialog
implements Runnable
A busy-box.

Puts up a dialog with a specified message. All user input is locked out. When the program is done with its task, it can unlock things by calling the done() method.

Sample usage:


 BusyBox b = new BusyBox( this, "Sample BusyBox" );
 b.show();
 [your task here]
 b.done();
 

NOTE: do not use this inside an event handler call! With some browsers this will cause a deadlock. Instead, have your event handler start a new thread to run the busy box and task.

Fetch the software.
Fetch the entire Acme package.


Constructor Index

 o BusyBox(Frame, String)
Constructor, default title.
 o BusyBox(Frame, String, String)
Constructor, specified title.

Method Index

 o done()
Task is done, get rid of the busy-box.
 o run()
 o show()
Show the box.

Constructors

 o BusyBox
 public BusyBox(Frame parent,
                String message)
Constructor, default title.

 o BusyBox
 public BusyBox(Frame parent,
                String title,
                String message)
Constructor, specified title.

Methods

 o show
 public void show()
Show the box.

Overrides:
show in class Dialog
 o run
 public void run()
 o done
 public void done()
Task is done, get rid of the busy-box.


All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs