public class SwingUtils extends Object
| Constructor and Description |
|---|
SwingUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
center(Window window)
Centers the given window on the primary screen.
|
static void |
center(Window window,
Window ownerWindow)
Centers the given window over its owner window.
|
static void |
repackCentered(Window window)
Packs the given window and positions it so that its
center stays the same. |
public static void center(Window window)
window - The window to centerpublic static void center(Window window, Window ownerWindow)
window - The window to centerownerWindow - The window to center the other window overCopyright © 2026. All rights reserved.