Algernon Software

org.algernon.util
Class WindowUtil

java.lang.Object
  extended byorg.algernon.util.WindowUtil

public class WindowUtil
extends Object

WindowUtil has utility routines for GUIs.


Constructor Summary
WindowUtil()
           
 
Method Summary
private static void dumpWindowBranch(Component root, int indent)
           
static void dumpWindowHierarchy(Component current)
          Prints an indented list of Window components to System.err.
static Component getRootFrame(Component x)
          Returns the root Frame of the given component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowUtil

public WindowUtil()
Method Detail

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)

Algernon Software