|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjunit.extensions.jfcunit.tools.JFCUtilities
JFCUtilities provides convenience methods for frequently needed GUI programming operations.
| Constructor Summary | |
private |
JFCUtilities()
Hide the constructor. |
| Method Summary | |
static void |
center(java.awt.Window win)
A utility method to center a Window. |
static void |
center(java.awt.Window win,
java.awt.Component comp)
A utility method to center a Window with respect to its parent Window. |
static java.awt.Component |
findComponentInHierarchy(java.awt.Component comp,
java.lang.Class clazz)
A utility method to find a Component in the component's parent hierarchy which is of the type specified. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
private JFCUtilities()
| Method Detail |
public static void center(java.awt.Window win)
Window.
win - The Window to be centered.
public static void center(java.awt.Window win,
java.awt.Component comp)
Window with respect to its parent Window.
win - The Window to be centered.comp - The parent Component of the above Window.
public static java.awt.Component findComponentInHierarchy(java.awt.Component comp,
java.lang.Class clazz)
comp - The Component whose hierarchy has to be searched for the JViewport.clazz - The type of the required parent
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||