31 import java.awt.image.*; 32 33 import javax.swing.plaf.*; 34 import javax.swing.event.*; 35 import javax.accessibility.*; 36 37 import java.io.ObjectOutputStream; 38 import java.io.ObjectInputStream; 39 import java.io.IOException; 40 41 42 /** 43 * An implementation of a "push" button. 44 * <p> 45 * Buttons can be configured, and to some degree controlled, by 46 * <code><a href="Action.html">Action</a></code>s. Using an 47 * <code>Action</code> with a button has many benefits beyond directly 48 * configuring a button. Refer to <a href="Action.html#buttonActions"> 49 * Swing Components Supporting <code>Action</code></a> for more 50 * details, and you can find more information in <a 51 * href="http://java.sun.com/docs/books/tutorial/uiswing/misc/action.html">How 52 * to Use Actions</a>, a section in <em>The Java Tutorial</em>. 53 * <p> 54 * See <a href="http://java.sun.com/docs/books/tutorial/uiswing/components/button.html">How to Use Buttons, Check Boxes, and Radio Buttons</a> 55 * in <em>The Java Tutorial</em> 56 * for information and examples of using buttons. 57 * <p> 58 * <strong>Warning:</strong> Swing is not thread safe. For more 59 * information see <a 60 * href="package-summary.html#threading">Swing's Threading 61 * Policy</a>. 62 * <p> 63 * <strong>Warning:</strong> 64 * Serialized objects of this class will not be compatible with 65 * future Swing releases. The current serialization support is 66 * appropriate for short term storage or RMI between applications running 67 * the same version of Swing. As of 1.4, support for long term storage 68 * of all JavaBeans<sup><font size="-2">TM</font></sup> 69 * has been added to the <code>java.beans</code> package. 70 * Please see {@link java.beans.XMLEncoder}. 71 * 72 * @beaninfo 73 * attribute: isContainer false 74 * description: An implementation of a \"push\" button. | 31 import java.awt.image.*; 32 33 import javax.swing.plaf.*; 34 import javax.swing.event.*; 35 import javax.accessibility.*; 36 37 import java.io.ObjectOutputStream; 38 import java.io.ObjectInputStream; 39 import java.io.IOException; 40 41 42 /** 43 * An implementation of a "push" button. 44 * <p> 45 * Buttons can be configured, and to some degree controlled, by 46 * <code><a href="Action.html">Action</a></code>s. Using an 47 * <code>Action</code> with a button has many benefits beyond directly 48 * configuring a button. Refer to <a href="Action.html#buttonActions"> 49 * Swing Components Supporting <code>Action</code></a> for more 50 * details, and you can find more information in <a 51 * href="http://docs.oracle.com/javase/tutorial/uiswing/misc/action.html">How 52 * to Use Actions</a>, a section in <em>The Java Tutorial</em>. 53 * <p> 54 * See <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/button.html">How to Use Buttons, Check Boxes, and Radio Buttons</a> 55 * in <em>The Java Tutorial</em> 56 * for information and examples of using buttons. 57 * <p> 58 * <strong>Warning:</strong> Swing is not thread safe. For more 59 * information see <a 60 * href="package-summary.html#threading">Swing's Threading 61 * Policy</a>. 62 * <p> 63 * <strong>Warning:</strong> 64 * Serialized objects of this class will not be compatible with 65 * future Swing releases. The current serialization support is 66 * appropriate for short term storage or RMI between applications running 67 * the same version of Swing. As of 1.4, support for long term storage 68 * of all JavaBeans<sup><font size="-2">TM</font></sup> 69 * has been added to the <code>java.beans</code> package. 70 * Please see {@link java.beans.XMLEncoder}. 71 * 72 * @beaninfo 73 * attribute: isContainer false 74 * description: An implementation of a \"push\" button. |