equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
74 * |
74 * |
75 * @see JRadioButton |
75 * @see JRadioButton |
76 * @see JCheckBox |
76 * @see JCheckBox |
77 * @author Jeff Dinkins |
77 * @author Jeff Dinkins |
78 */ |
78 */ |
|
79 @SuppressWarnings("serial") // Same-version serialization only |
79 public class JToggleButton extends AbstractButton implements Accessible { |
80 public class JToggleButton extends AbstractButton implements Accessible { |
80 |
81 |
81 /** |
82 /** |
82 * @see #getUIClassID |
83 * @see #getUIClassID |
83 * @see #readObject |
84 * @see #readObject |
220 * the same version of Swing. As of 1.4, support for long term storage |
221 * the same version of Swing. As of 1.4, support for long term storage |
221 * of all JavaBeans™ |
222 * of all JavaBeans™ |
222 * has been added to the <code>java.beans</code> package. |
223 * has been added to the <code>java.beans</code> package. |
223 * Please see {@link java.beans.XMLEncoder}. |
224 * Please see {@link java.beans.XMLEncoder}. |
224 */ |
225 */ |
|
226 @SuppressWarnings("serial") // Same-version serialization only |
225 public static class ToggleButtonModel extends DefaultButtonModel { |
227 public static class ToggleButtonModel extends DefaultButtonModel { |
226 |
228 |
227 /** |
229 /** |
228 * Creates a new ToggleButton Model |
230 * Creates a new ToggleButton Model |
229 */ |
231 */ |
382 * the same version of Swing. As of 1.4, support for long term storage |
384 * the same version of Swing. As of 1.4, support for long term storage |
383 * of all JavaBeans™ |
385 * of all JavaBeans™ |
384 * has been added to the <code>java.beans</code> package. |
386 * has been added to the <code>java.beans</code> package. |
385 * Please see {@link java.beans.XMLEncoder}. |
387 * Please see {@link java.beans.XMLEncoder}. |
386 */ |
388 */ |
|
389 @SuppressWarnings("serial") // Same-version serialization only |
387 protected class AccessibleJToggleButton extends AccessibleAbstractButton |
390 protected class AccessibleJToggleButton extends AccessibleAbstractButton |
388 implements ItemListener { |
391 implements ItemListener { |
389 |
392 |
390 public AccessibleJToggleButton() { |
393 public AccessibleJToggleButton() { |
391 super(); |
394 super(); |