|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.application.utils.SwingHelper
public final class SwingHelper
Utility class for Swing Application Framework (BSAF)
Method Summary | |
---|---|
static Rectangle |
computeVirtualGraphicsBounds()
Calculates virtual graphic bounds. |
static Point |
defaultLocation(Window window)
Calculates default location for the specified window. |
static RootPaneContainer |
findRootPaneContainer(Component root)
Finds the nearest RootPaneContainer of the provided Component. |
static Rectangle |
getWindowNormalBounds(Window window)
Gets Window bounds from the client property |
static boolean |
isResizable(Window window)
Checks whether the window supports resizing |
static void |
putWindowNormalBounds(Window window,
Rectangle bounds)
Puts Window bounds to client property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Rectangle computeVirtualGraphicsBounds()
public static boolean isResizable(Window window)
window
- the Window
to be checked
public static Point defaultLocation(Window window)
window
- the window location is calculated for.
It should not be null.
public static RootPaneContainer findRootPaneContainer(Component root)
root
- the Component
public static Rectangle getWindowNormalBounds(Window window)
Window
bounds from the client property
window
- the source Window
public static void putWindowNormalBounds(Window window, Rectangle bounds)
Window
bounds to client property.
window
- the target Window
bounds
- bounds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |