|
ESC/Java2 © 2003,2004,2005 David Cok and Joseph Kiniry © 2005 UCD Dublin © 2003,2004 Radboud University Nijmegen © 1999,2000 Compaq Computer Corporation © 1997,1998,1999 Digital Equipment Corporation All Rights Reserved |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectescjava.gui.FrameShower
The FrameShower is used to be sure that a Frame is shown through a call that is made on the Event thread. This is generally advised in order to avoid race conditions in the GUI painting itself. Use this class by calling the static method to queue a new instance of an object to be shown.
Field Summary | |
private java.awt.Frame |
frame
|
Constructor Summary | |
protected |
FrameShower(java.awt.Frame frame)
Creates a FrameShower object holding the given Frame. |
Method Summary | |
void |
run()
Called by the EventQueue as the task to be accomplished - it shows/makes visible the given frame. |
(package private) static void |
show(java.awt.Frame frame)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final java.awt.Frame frame
Constructor Detail |
protected FrameShower(java.awt.Frame frame)
Method Detail |
public void run()
run
in interface java.lang.Runnable
static void show(java.awt.Frame frame)
|
ESC/Java2 © 2003,2004,2005 David Cok and Joseph Kiniry © 2005 UCD Dublin © 2003,2004 Radboud University Nijmegen © 1999,2000 Compaq Computer Corporation © 1997,1998,1999 Digital Equipment Corporation All Rights Reserved |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |