|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jstatcom.component.TopFrameReference
public final class TopFrameReference
Class that simply holds a globally accessable reference to the top frame of the application. This needs to be accessed by classes that show messages that should be modal and centered on the screen. The reference should be set at program start. This class is a Singleton.
Method Summary | |
---|---|
static javax.swing.JFrame |
getTopFrameRef()
Gets the top-level reference. |
static void |
setTopFrameRef(javax.swing.JFrame newTopFrameRef)
Set the reference to the top-level frame of the application. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static javax.swing.JFrame getTopFrameRef()
public static void setTopFrameRef(javax.swing.JFrame newTopFrameRef)
newTopFrameRef
- the new top frame
java.lang.IllegalStateException
- if the reference was set before
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |