net.sf.freecol.client.gui.menu
Class FreeColMenuTest
java.lang.Object
net.sf.freecol.client.gui.menu.FreeColMenuTest
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.awt.event.ItemListener, java.util.EventListener
public class FreeColMenuTest
- extends java.lang.Object
- implements java.awt.event.ActionListener, java.awt.event.ItemListener
|
Field Summary |
(package private) java.lang.String |
newline
|
(package private) javax.swing.JTextArea |
output
|
(package private) javax.swing.JScrollPane |
scrollPane
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
output
javax.swing.JTextArea output
scrollPane
javax.swing.JScrollPane scrollPane
newline
java.lang.String newline
FreeColMenuTest
public FreeColMenuTest()
createMenuBar
public javax.swing.JMenuBar createMenuBar()
createContentPane
public java.awt.Container createContentPane()
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed in interface java.awt.event.ActionListener
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent e)
- Specified by:
itemStateChanged in interface java.awt.event.ItemListener
getClassName
protected java.lang.String getClassName(java.lang.Object o)
createImageIcon
protected static javax.swing.ImageIcon createImageIcon(java.lang.String path)
- Returns an ImageIcon, or null if the path was invalid.
- Parameters:
path - String
- Returns:
ImageIcon
createAndShowGUI
private static void createAndShowGUI()
- Create the GUI and show it. For thread safety,
this method should be invoked from the
event-dispatching thread.
main
public static void main(java.lang.String[] args)