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

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


  58  * information see <a
  59  * href="package-summary.html#threading">Swing's Threading
  60  * Policy</a>.
  61  * <p>
  62  * <strong>Warning:</strong>
  63  * Serialized objects of this class will not be compatible with
  64  * future Swing releases. The current serialization support is
  65  * appropriate for short term storage or RMI between applications running
  66  * the same version of Swing.  As of 1.4, support for long term storage
  67  * of all JavaBeans&trade;
  68  * has been added to the <code>java.beans</code> package.
  69  * Please see {@link java.beans.XMLEncoder}.
  70  *
  71  * @beaninfo
  72  *   attribute: isContainer false
  73  * description: An implementation of a two-state button.
  74  *
  75  * @see JRadioButton
  76  * @see JCheckBox
  77  * @author Jeff Dinkins

  78  */
  79 @SuppressWarnings("serial") // Same-version serialization only
  80 public class JToggleButton extends AbstractButton implements Accessible {
  81 
  82     /**
  83      * @see #getUIClassID
  84      * @see #readObject
  85      */
  86     private static final String uiClassID = "ToggleButtonUI";
  87 
  88     /**
  89      * Creates an initially unselected toggle button
  90      * without setting the text or image.
  91      */
  92     public JToggleButton () {
  93         this(null, null, false);
  94     }
  95 
  96     /**
  97      * Creates an initially unselected toggle button




  58  * information see <a
  59  * href="package-summary.html#threading">Swing's Threading
  60  * Policy</a>.
  61  * <p>
  62  * <strong>Warning:</strong>
  63  * Serialized objects of this class will not be compatible with
  64  * future Swing releases. The current serialization support is
  65  * appropriate for short term storage or RMI between applications running
  66  * the same version of Swing.  As of 1.4, support for long term storage
  67  * of all JavaBeans&trade;
  68  * has been added to the <code>java.beans</code> package.
  69  * Please see {@link java.beans.XMLEncoder}.
  70  *
  71  * @beaninfo
  72  *   attribute: isContainer false
  73  * description: An implementation of a two-state button.
  74  *
  75  * @see JRadioButton
  76  * @see JCheckBox
  77  * @author Jeff Dinkins
  78  * @since 1.2
  79  */
  80 @SuppressWarnings("serial") // Same-version serialization only
  81 public class JToggleButton extends AbstractButton implements Accessible {
  82 
  83     /**
  84      * @see #getUIClassID
  85      * @see #readObject
  86      */
  87     private static final String uiClassID = "ToggleButtonUI";
  88 
  89     /**
  90      * Creates an initially unselected toggle button
  91      * without setting the text or image.
  92      */
  93     public JToggleButton () {
  94         this(null, null, false);
  95     }
  96 
  97     /**
  98      * Creates an initially unselected toggle button