| java.lang.Object org.gjt.jclasslib.util.GUIHelper
GUIHelper | public class GUIHelper (Code) | | Collection of GUI utility methods.
author: Ingo Kegel version: $Revision: 1.1 $ $Date: 2003/08/18 07:46:43 $ |
ICON_EMPTY | final public static Icon ICON_EMPTY(Code) | | Empty icon 16x16.
|
MESSAGE_TITLE | final public static String MESSAGE_TITLE(Code) | | The title for message boxes.
|
YES_NO_OPTIONS | final public static String[] YES_NO_OPTIONS(Code) | | "Yes" and "No" Options for showOptionDialog.
|
centerOnParentWindow | public static void centerOnParentWindow(Window window, Window parentWindow)(Code) | | Center a window on another window.
Parameters: window - the window to be centered. Parameters: parentWindow - the parent window on which the window is to be centered. |
setDefaultScrollbarUnits | public static void setDefaultScrollbarUnits(JScrollPane scrollPane)(Code) | | Set reasonable unit increments for a scroll pane that does not contain a
Scrollable.
Parameters: scrollPane - |
showMessage | public static void showMessage(Component parent, String message, int messageType)(Code) | | Show a JOptionPane message dialog.
Parameters: parent - parent component Parameters: message - the message string Parameters: messageType - the message type as defined in JOptionPane |
showOptionDialog | public static int showOptionDialog(Component parent, String message, String[] options, int messageType)(Code) | | Show a JOptionPane option dialog.
Parameters: parent - parent component Parameters: message - the message string Parameters: options - the array of option strings Parameters: messageType - the message type as defined in JOptionPane the result code of the dialog |
|
|