org.algernon.util
Class WindowUtil
java.lang.Object
org.algernon.util.WindowUtil
- public class WindowUtil
- extends Object
WindowUtil has utility routines for GUIs.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WindowUtil
public WindowUtil()
getRootFrame
public static Component getRootFrame(Component x)
- Returns the root Frame of the given component.
- Returns:
- the root Frame or JFrame.
dumpWindowHierarchy
public static void dumpWindowHierarchy(Component current)
- Prints an indented list of Window components to System.err.
The first parameter should be a component in the window hierarchy
that you want to print. The entire
entire window hierarchy is printed.
- Parameters:
current
- a component in the hierarchy.
dumpWindowBranch
private static void dumpWindowBranch(Component root,
int indent)