creamtec.core
Class GUIUtilities

java.lang.Object
  extended by creamtec.core.GUIUtilities

public class GUIUtilities
extends java.lang.Object

Provides convenience methods for GUI objects


Method Summary
static void centerWindow(java.awt.Window window)
          Centers a given window on screen
static java.awt.Component findChildOfClass(java.awt.Container container, java.lang.Class cls)
          Finds a child of the given class anywhere down the containment tree
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

centerWindow

public static void centerWindow(java.awt.Window window)
Centers a given window on screen

Parameters:
window - Window

findChildOfClass

public static java.awt.Component findChildOfClass(java.awt.Container container,
                                                  java.lang.Class cls)
Finds a child of the given class anywhere down the containment tree

Parameters:
container -
cls -
Returns:
child component if found, null otherwise


Copyright © 2000-2006 CreamTec LLC. All Rights Reserved.