|
MDACC Biostatistics |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mdanderson.biostat.util.GuiUtil
GuiUtil - Implements GUI utility routines.
Constructor Summary | |
GuiUtil()
|
Method Summary | |
static void |
addTitledBorder(JComponent component,
String borderTitle)
Adds a titled border to a container |
static JMenuItem |
createMenuItem(String label,
String mnemonic,
String description,
String toolTipText,
ActionListener actionListener)
Creates a generic menu item |
static JMenuItem |
createRadioButtonMenuItem(String label,
String mnemonic,
String description,
String toolTipText,
ActionListener actionListener)
Creates a radiobutton menu item |
static void |
displayErrorDialog(Container parent,
String title,
String message)
Displays an error message dialog |
static void |
displayInfoDialog(Container parent,
String title,
String message)
Displays an information message dialog |
static void |
displayNoticeDialog(Container parent,
String title,
String message,
long delay)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GuiUtil()
Method Detail |
public static void addTitledBorder(JComponent component, String borderTitle)
component
- object to which to apply the borderborderTitle
- string specifying text to be displayed on borderpublic static JMenuItem createMenuItem(String label, String mnemonic, String description, String toolTipText, ActionListener actionListener)
label
- string specifying label textmnemonic
- string specifying keyboard mnemonicdescription
- string specifying accessible descriptiontoolTipText
- string specifying tool tip text to be displayedactionListener
- ActionListener
to be added to the
menuitem
JMenuItem
objectpublic static JMenuItem createRadioButtonMenuItem(String label, String mnemonic, String description, String toolTipText, ActionListener actionListener)
label
- string specifying label textmnemonic
- string specifying keyboard mnemonicdescription
- string specifying accessible descriptiontoolTipText
- string specifying tool tip text to be displayedactionListener
- ActionListener
to be added to the
menuitem
JRadioButtonMenuItem
objectpublic static void displayErrorDialog(Container parent, String title, String message)
parent
- Container
objecttitle
- string specifying dialog titlemessage
- string specifying error message to be displayedpublic static void displayInfoDialog(Container parent, String title, String message)
parent
- Container
objecttitle
- string specifying dialog titlemessage
- string specifying information message to be displayedpublic static void displayNoticeDialog(Container parent, String title, String message, long delay)
|
MDACC Biostatistics |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |