All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tropo.awt.TRGui

java.lang.Object
   |
   +----tropo.awt.TRGui

public class TRGui
extends Object

Constructor Index

 o TRGui()

Method Index

 o centerWindow(Window)
Center a Window (Frame or Dialog) on the screen.
 o getFrame(Component)
Given a component, traverse up the widget hierarchy to find the frame it is contained within.
 o getWindow(Component)
Given a component, traverse up the widget hierarchy to find the window it is contained within.

Constructors

 o TRGui
 public TRGui()

Methods

 o 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
 o 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
 o 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