public final class SwingHelper extends Object
Modifier and Type | Method and Description |
---|---|
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. |
public static Rectangle computeVirtualGraphicsBounds()
public static boolean isResizable(Window window)
window
- the Window
to be checkedpublic 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 Componentpublic static Rectangle getWindowNormalBounds(Window window)
Window
bounds from the client propertywindow
- the source Window
Copyright © 2009–2016. All rights reserved.