src/share/classes/javax/swing/JMenu.java

Print this page
rev 10121 : 8046485: Add missing @since tag under javax.swing.*
Reviewed-by:


  91  * <strong>Warning:</strong>
  92  * Serialized objects of this class will not be compatible with
  93  * future Swing releases. The current serialization support is
  94  * appropriate for short term storage or RMI between applications running
  95  * the same version of Swing.  As of 1.4, support for long term storage
  96  * of all JavaBeans&trade;
  97  * has been added to the <code>java.beans</code> package.
  98  * Please see {@link java.beans.XMLEncoder}.
  99  *
 100  * @beaninfo
 101  *   attribute: isContainer true
 102  * description: A popup window containing menu items displayed in a menu bar.
 103  *
 104  * @author Georges Saab
 105  * @author David Karlton
 106  * @author Arnaud Weber
 107  * @see JMenuItem
 108  * @see JSeparator
 109  * @see JMenuBar
 110  * @see JPopupMenu

 111  */
 112 @SuppressWarnings("serial")
 113 public class JMenu extends JMenuItem implements Accessible,MenuElement
 114 {
 115     /**
 116      * @see #getUIClassID
 117      * @see #readObject
 118      */
 119     private static final String uiClassID = "MenuUI";
 120 
 121     /*
 122      * The popup menu portion of the menu.
 123      */
 124     private JPopupMenu popupMenu;
 125 
 126     /*
 127      * The button's model listeners.  Default is <code>null</code>.
 128      */
 129     private ChangeListener menuChangeListener = null;
 130 




  91  * <strong>Warning:</strong>
  92  * Serialized objects of this class will not be compatible with
  93  * future Swing releases. The current serialization support is
  94  * appropriate for short term storage or RMI between applications running
  95  * the same version of Swing.  As of 1.4, support for long term storage
  96  * of all JavaBeans&trade;
  97  * has been added to the <code>java.beans</code> package.
  98  * Please see {@link java.beans.XMLEncoder}.
  99  *
 100  * @beaninfo
 101  *   attribute: isContainer true
 102  * description: A popup window containing menu items displayed in a menu bar.
 103  *
 104  * @author Georges Saab
 105  * @author David Karlton
 106  * @author Arnaud Weber
 107  * @see JMenuItem
 108  * @see JSeparator
 109  * @see JMenuBar
 110  * @see JPopupMenu
 111  * @since 1.2
 112  */
 113 @SuppressWarnings("serial")
 114 public class JMenu extends JMenuItem implements Accessible,MenuElement
 115 {
 116     /**
 117      * @see #getUIClassID
 118      * @see #readObject
 119      */
 120     private static final String uiClassID = "MenuUI";
 121 
 122     /*
 123      * The popup menu portion of the menu.
 124      */
 125     private JPopupMenu popupMenu;
 126 
 127     /*
 128      * The button's model listeners.  Default is <code>null</code>.
 129      */
 130     private ChangeListener menuChangeListener = null;
 131