All Packages Class Hierarchy This Package Previous Next Index
Class tropo.awt.TRGui
java.lang.Object
|
+----tropo.awt.TRGui
- public class TRGui
- extends Object
-
TRGui()
-
-
centerWindow(Window)
- Center a Window (Frame or Dialog) on the screen.
-
getFrame(Component)
- Given a component, traverse up the widget hierarchy to find
the frame it is contained within.
-
getWindow(Component)
- Given a component, traverse up the widget hierarchy to find
the window it is contained within.
TRGui
public TRGui()
getFrame
public static Frame getFrame(Component c)
- Given a component, traverse up the widget hierarchy to find
the frame it is contained within. If for some reason the frame
cannot be found, return null.
- Parameters:
- c - the component whose frame you want to discover
- Returns:
- the frame the component is contained in, or null
getWindow
public static Window getWindow(Component c)
- Given a component, traverse up the widget hierarchy to find
the window it is contained within. If for some reason the
window cannot be found, return null. Both a Frame and a
Dialog are windows
- Parameters:
- c - the component whose frame you want to discover
- Returns:
- the window the component is contained in, or null
centerWindow
public static void centerWindow(Window c)
- Center a Window (Frame or Dialog) on the screen. You must
call show() on the window after this if you want the screen
to popup.
- Parameters:
- c - the window to center
All Packages Class Hierarchy This Package Previous Next Index