// (new JFileChooser()).show();
JOptionPane.showMessageDialog(this,
"This test has been (temporarily) disabled", "Information",
JOptionPane.PLAIN_MESSAGE);
} else if (actionCommand.equals("Null Layout")) {
JDialog dlg = new NullLayoutTest(this);
dlg.show();
} else if (actionCommand.equals("Miscellaneous Layouts")) {
JDialog dlg = new LayoutTest(this);
dlg.show();
} else if (actionCommand.equals("Layouts in Color")) {
if (!Toolkit.getDefaultToolkit().hasColors()) {
JOptionPane.showMessageDialog(this,
"This terminal does not have color capability!",
"Error", JOptionPane.PLAIN_MESSAGE);
return;
}
JDialog dlg = new ColorLayoutTest(this);
dlg.setLocationRelativeTo(this);
dlg.show();
} else if (actionCommand.equals("GridBagLayout")) {
JDialog dlg = new GridBagLayoutTest(this);
dlg.setLocationRelativeTo(this);
dlg.show();
} else if (actionCommand.equals("JTabbedPane")) {
JDialog dlg = new JTabbedPaneTest(this);
dlg.show();
} else if (actionCommand.equals("showMessageDialog")) {
JOptionPane.showMessageDialog(this,
"This is an example of a Message Dialog "
+ "with a single message string",
"This is the title", JOptionPane.PLAIN_MESSAGE);
} else if (actionCommand.equals("showConfirmDialog")) {
showConfirmDialog();
} else if (actionCommand.equals("showInputDialog")) {
showInputDialog();
} else if (actionCommand.equals("show Custom InputDialog")) {
showCustomInputDialog(this);
} else if (actionCommand.equals("Text components")) {
TextWidgetTest dlg = new TextWidgetTest(this);
dlg.show();
} else if (actionCommand.equals("Selection components")) {
SelectionTest dlg = new SelectionTest(this);
dlg.show();
} else if (actionCommand.equals("Buttons")) {
(new ButtonTest(this)).show();
} else if (actionCommand.equals("JTable")) {
JTableTest dlg = new JTableTest(this);
dlg.setLocationRelativeTo(this);
dlg.show();
} else if (actionCommand.equals("KeyEvents")) {
KeyEventTest dlg = new KeyEventTest(this);
dlg.setLocationRelativeTo(this);
dlg.show();
} else if (actionCommand.equals("FocusEvents")) {
FocusEventTest dlg = new FocusEventTest(this);
dlg.setLocationRelativeTo(this);
dlg.show();
} else if (actionCommand.equals("JProgressBar")) {
ProgressBarTest dlg = new ProgressBarTest(this);
dlg.setLocationRelativeTo(this);
dlg.show();
} else {
JOptionPane.showMessageDialog(this, "Menu item \"" + actionCommand
+ "\" not implemented yet", "Error",
JOptionPane.PLAIN_MESSAGE);
}