public class WindowUtilities
extends java.lang.Object
Constructor and Description |
---|
WindowUtilities() |
Modifier and Type | Method and Description |
---|---|
static void |
setCentered(java.awt.Window parent,
javax.swing.JDialog dialogToCenter)
This utility method will center
dialogToCenter with respect to parent . |
public static void setCentered(java.awt.Window parent, javax.swing.JDialog dialogToCenter)
dialogToCenter
with respect to parent
.parent
- The JFrame to be used as the reference when centering the dialog.dialogToCenter
- The dialog to center.