|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.swing.Menus
public final class Menus
Menus provides some convenient menus and dialogs that are potentially useful for any Java Swing Application. If available, it takes advantage of com.incors.plaf.kunststoff.KunststoffLookAndFeel.
| Field Summary | |
|---|---|
static java.lang.String |
aboutString
DOCUMENT ME! |
static javax.swing.ImageIcon |
antelmannIcon
DOCUMENT ME! |
static java.util.ResourceBundle |
language
allows access to the localized language used in this package |
static boolean |
verbose
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
Menus()
|
|
| Method Summary | |
|---|---|
static javax.swing.JMenuItem |
createAboutBoxMenuItem(java.awt.Frame parent)
returns an 'about' menu capable of displaying an Antelmann.com's info box. |
static javax.swing.JMenuItem |
createAboutDialogMenuItem(java.awt.Frame parent)
returns an 'about' menu capable of displaying an Antelmann.com's info box. |
static javax.swing.JMenuBar |
createDefaultMenuBar(java.awt.Frame parent)
returns a convenient standard JMenuBar to be used with any Frame |
static javax.swing.JDialog |
createDialog(java.awt.Component parent,
java.lang.String title,
boolean modal)
|
static javax.swing.JMenu |
createLookAndFeelMenu(java.awt.Frame rootComponent)
createLookAndFeelMenu() generates a JMenu that lets the user select from different look&feel options. |
static char[] |
enterPassword(java.awt.Component parent)
DOCUMENT ME! |
static char[] |
enterPassword(java.awt.Component parent,
java.lang.String title,
java.lang.Object message,
java.lang.String initialValue)
DOCUMENT ME! |
static char[] |
enterPassword(java.awt.Component parent,
java.lang.String title,
java.lang.Object message,
java.lang.String initialValue,
javax.swing.ImageIcon icon)
DOCUMENT ME! |
static java.awt.Dialog |
getDialogForComponent(java.awt.Component component)
DOCUMENT ME! |
static void |
makeCompactSpringGrid(java.awt.Container parent,
int rows,
int cols,
int initialX,
int initialY,
int xPad,
int yPad)
Aligns the first rowscols components
of parent in a grid. |
static javax.swing.JTable |
makePropertiesTable(java.util.Map properties)
calls makePropertiesTable(properties, "key",
"value") |
static javax.swing.JTable |
makePropertiesTable(java.util.Map properties,
java.lang.String keyHeader,
java.lang.String valueHeader)
returns a table that orders the entries by the keys of the properties |
static void |
makeSpringGrid(java.awt.Container parent,
int rows,
int cols,
int initialX,
int initialY,
int xPad,
int yPad)
Aligns the first rowscols components
of parent in a grid. |
static void |
showAboutBox(java.awt.Component parent)
shows a small antelmann.com about dialog |
static void |
showAboutDialog(java.awt.Component parent)
shows the standard antelmann.com about dialog with license, version and upgrade button |
static void |
showExceptionDialog(java.awt.Component parent,
java.lang.Throwable ex)
DOCUMENT ME! |
static void |
showExceptionDialog(java.awt.Component parent,
java.lang.Throwable ex,
java.lang.Thread t)
DOCUMENT ME! |
static void |
showExceptionDialog(java.lang.Throwable ex)
DOCUMENT ME! |
static void |
showLicenseDialog(java.awt.Component parent)
DOCUMENT ME! |
static void |
showPropertiesDialog(java.lang.String title,
java.util.Map properties,
java.awt.Component parent,
boolean modal)
Deprecated. use makePropertiesTable with
JOptionPane instead |
static void |
showVersionDialog(java.awt.Component parent)
DOCUMENT ME! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final javax.swing.ImageIcon antelmannIcon
public static final java.lang.String aboutString
public static boolean verbose
public static final java.util.ResourceBundle language
| Constructor Detail |
|---|
public Menus()
| Method Detail |
|---|
public static javax.swing.JMenuBar createDefaultMenuBar(java.awt.Frame parent)
parent - DOCUMENT ME!
public static javax.swing.JMenu createLookAndFeelMenu(java.awt.Frame rootComponent)
rootComponent - the top component of the GUI tree that needs to be
updated
java.lang.Error - DOCUMENT ME!public static javax.swing.JMenuItem createAboutDialogMenuItem(java.awt.Frame parent)
parent - the component over which the modal dialog is to be placed
public static javax.swing.JMenuItem createAboutBoxMenuItem(java.awt.Frame parent)
parent - the component over which the modal dialog is to be placed
public static void showAboutBox(java.awt.Component parent)
parent - DOCUMENT ME!public static void showAboutDialog(java.awt.Component parent)
parent - DOCUMENT ME!public static void showVersionDialog(java.awt.Component parent)
parent - DOCUMENT ME!public static void showLicenseDialog(java.awt.Component parent)
parent - DOCUMENT ME!
@Deprecated
public static void showPropertiesDialog(java.lang.String title,
java.util.Map properties,
java.awt.Component parent,
boolean modal)
makePropertiesTable with
JOptionPane instead
title - DOCUMENT ME!properties - DOCUMENT ME!parent - DOCUMENT ME!modal - DOCUMENT ME!makePropertiesTable(Map,String,String)public static javax.swing.JTable makePropertiesTable(java.util.Map properties)
makePropertiesTable(properties, "key",
"value")
properties - DOCUMENT ME!
public static javax.swing.JTable makePropertiesTable(java.util.Map properties,
java.lang.String keyHeader,
java.lang.String valueHeader)
properties - DOCUMENT ME!keyHeader - DOCUMENT ME!valueHeader - DOCUMENT ME!
public static void showExceptionDialog(java.lang.Throwable ex)
ex - DOCUMENT ME!
public static void showExceptionDialog(java.awt.Component parent,
java.lang.Throwable ex)
parent - DOCUMENT ME!ex - DOCUMENT ME!
public static void showExceptionDialog(java.awt.Component parent,
java.lang.Throwable ex,
java.lang.Thread t)
parent - DOCUMENT ME!ex - DOCUMENT ME!t - DOCUMENT ME!public static char[] enterPassword(java.awt.Component parent)
parent - DOCUMENT ME!
public static char[] enterPassword(java.awt.Component parent,
java.lang.String title,
java.lang.Object message,
java.lang.String initialValue)
parent - DOCUMENT ME!title - DOCUMENT ME!message - DOCUMENT ME!initialValue - DOCUMENT ME!
public static char[] enterPassword(java.awt.Component parent,
java.lang.String title,
java.lang.Object message,
java.lang.String initialValue,
javax.swing.ImageIcon icon)
parent - DOCUMENT ME!title - DOCUMENT ME!message - DOCUMENT ME!initialValue - DOCUMENT ME!icon - DOCUMENT ME!
public static javax.swing.JDialog createDialog(java.awt.Component parent,
java.lang.String title,
boolean modal)
JOptionPane.createDialog(Component,String)public static java.awt.Dialog getDialogForComponent(java.awt.Component component)
component - DOCUMENT ME!
public static void makeSpringGrid(java.awt.Container parent,
int rows,
int cols,
int initialX,
int initialY,
int xPad,
int yPad)
rowscols components
of parent in a grid. Each component is as big as the
maximum preferred width and height of the components. The parent is
made just big enough to fit them all. The parent component must be a
SpringLayout. The code for this method is based on the turorial from
the Sun Java website.
parent - DOCUMENT ME!rows - number of rowscols - number of columnsinitialX - x location to start the grid atinitialY - y location to start the grid atxPad - x padding between cellsyPad - y padding between cells
public static void makeCompactSpringGrid(java.awt.Container parent,
int rows,
int cols,
int initialX,
int initialY,
int xPad,
int yPad)
rowscols components
of parent in a grid. Each component in a column is as wide
as the maximum preferred width of the components in that column; height
is similarly determined for each row. The parent is made just big
enough to fit them all. The parent component must be a SpringLayout.
The code for this method is based on the turorial from the Sun Java
website.
parent - DOCUMENT ME!rows - number of rowscols - number of columnsinitialX - x location to start the grid atinitialY - y location to start the grid atxPad - x padding between cellsyPad - y padding between cells
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||