|
||||||||||
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 java.awt.Rectangle |
computeVirtualGraphicsBounds()
Calculates virtual graphic bounds. |
static java.awt.Point |
defaultLocation(java.awt.Window window)
Calculates default location for the specified window. |
static javax.swing.RootPaneContainer |
findRootPaneContainer(java.awt.Component root)
Finds the nearest RootPaneContainer of the provided Component. |
static java.awt.Rectangle |
getWindowNormalBounds(java.awt.Window window)
Gets Window bounds from the client property |
static boolean |
isResizable(java.awt.Window window)
Checks whether the window supports resizing |
static void |
putWindowNormalBounds(java.awt.Window window,
java.awt.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 java.awt.Rectangle computeVirtualGraphicsBounds()
public static boolean isResizable(java.awt.Window window)
window
- the Window
to be checked
public static java.awt.Point defaultLocation(java.awt.Window window)
window
- the window location is calculated for.
It should not be null.
public static javax.swing.RootPaneContainer findRootPaneContainer(java.awt.Component root)
root
- the Component
public static java.awt.Rectangle getWindowNormalBounds(java.awt.Window window)
Window
bounds from the client property
window
- the source Window
public static void putWindowNormalBounds(java.awt.Window window, java.awt.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 |