Package 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.ItemListenerTest the menus.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.Stringnewline(package private) javax.swing.JTextAreaoutput(package private) javax.swing.JScrollPanescrollPane
-
Constructor Summary
Constructors Constructor Description FreeColMenuTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent ae)private static voidcreateAndShowGUI()Create the GUI and show it.private java.awt.ContainercreateContentPane()protected static javax.swing.ImageIconcreateImageIcon(java.lang.String path)Returns an ImageIcon, or null if the path was invalid.private javax.swing.JMenuBarcreateMenuBar()protected java.lang.StringgetClassName(java.lang.Object o)voiditemStateChanged(java.awt.event.ItemEvent e)static voidmain(java.lang.String[] args)
-
-
-
Field Detail
-
output
javax.swing.JTextArea output
-
scrollPane
javax.swing.JScrollPane scrollPane
-
newline
final java.lang.String newline
- See Also:
- Constant Field Values
-
-
Method Detail
-
createMenuBar
private javax.swing.JMenuBar createMenuBar()
-
createContentPane
private java.awt.Container createContentPane()
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent ae)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent e)
- Specified by:
itemStateChangedin interfacejava.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)
-
-