public interface AWTContext extends GUIContext
GUIManager and provided to
the application component via SessionContext.getGUIContext(). The
application component has to cast the returned GUIContext to
this graphical context.
Using this context it is guaranteed that commands could
be executed by the designated AWT-Dispatch-Thread via the methods
java.awt.EventQueue.invokeAndWait(...) and
java.awt.EventQueue.invokeLater(...) respectively.
| Modifier and Type | Method and Description |
|---|---|
java.awt.Frame |
getParentFrame()
Gets the parent frame of this context to use for the GUI of the
application.
|
closejava.awt.Frame getParentFrame()
InvalidExecutorThreadException will be thrown if the
method is not called by the main thread of the corresponding component.