ModalContextpublic class ModalContext extends Object The context for nested event loop. It can be dialog, popup menu etc. |
Fields Summary |
---|
private boolean | running | private final Toolkit | toolkit |
Constructors Summary |
---|
ModalContext()
toolkit = Toolkit.getDefaultToolkit();
|
Methods Summary |
---|
void | endModalLoop()Leave the modal loop running in this context
This method doesn't stops the loop immediately,
it just sets the flag that says the modal loop to stop
running = false;
| boolean | isModalLoopRunning()
return running;
| void | runModalLoop()Set up and run modal loop in this context
running = true;
toolkit.dispatchThread.runModalLoop(this);
|
|