|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectar.com.leak.iolsucker.container.swing.UiUtil
public final class UiUtil
Static convenience methods for GUIs which eliminate code duplication.
Method Summary | |
---|---|
static void |
centerAndShow(Window aWindow)
|
static void |
centerOnParentAndShow(Window aWindow)
A window is packed, centered with respect to a parent, and then shown. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void centerAndShow(Window aWindow)
aWindow
- window to center in the screen, and to showpublic static void centerOnParentAndShow(Window aWindow)
This method is intended for dialogs only.
If centering with respect to a parent causes any part of the dialog to be off screen, then the centering is overidden, such that all of the dialog will always appear fully on screen, but it will still appear near the parent.
aWindow
- must have non-null result for aWindow.getParent
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |