public class EditorDialogUtil extends Object
| Constructor and Description |
|---|
EditorDialogUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addButton(ActionListener l,
Container container,
String name,
String cmd)
Add a button to a container with the given parameters and
action listener.
|
static void |
center(JFrame parent,
JInternalFrame dialog)
Centers the supplied dialog in its parent's bounds.
|
static void |
dismiss(JInternalFrame dialog)
Removes the supplied dialog from its parent container, but does not
dispose it.
|
static void |
display(JFrame parent,
JInternalFrame dialog)
Display a dialog centered within the given frame.
|
static void |
dispose(JInternalFrame dialog)
Handles safely dismissing and disposing of the supplied dialog.
|
static JComboBox |
getOrientationComboBox(ActionListener l)
Create and return a combo box seeded with the various possible
orientation direction names.
|
public static void addButton(ActionListener l, Container container, String name, String cmd)
l - the listener.container - the container.name - the button name.cmd - the action command.public static JComboBox getOrientationComboBox(ActionListener l)
l - the listener.public static void center(JFrame parent, JInternalFrame dialog)
public static void display(JFrame parent, JInternalFrame dialog)
parent - the parent frame.dialog - the dialog.public static void dismiss(JInternalFrame dialog)
public static void dispose(JInternalFrame dialog)
Copyright © 2015. All rights reserved.