Class 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
    Test the menus.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String newline  
      (package private) javax.swing.JTextArea output  
      (package private) javax.swing.JScrollPane scrollPane  
    • Constructor Summary

      Constructors 
      Constructor Description
      FreeColMenuTest()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent ae)  
      private static void createAndShowGUI()
      Create the GUI and show it.
      private java.awt.Container createContentPane()  
      protected static javax.swing.ImageIcon createImageIcon​(java.lang.String path)
      Returns an ImageIcon, or null if the path was invalid.
      private javax.swing.JMenuBar createMenuBar()  
      protected java.lang.String getClassName​(java.lang.Object o)  
      void itemStateChanged​(java.awt.event.ItemEvent e)  
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • output

        javax.swing.JTextArea output
      • scrollPane

        javax.swing.JScrollPane scrollPane
    • Constructor Detail

      • FreeColMenuTest

        public FreeColMenuTest()
    • 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:
        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)