27 package javax.swing;
28 import javax.swing.plaf.*;
29 import javax.accessibility.*;
30
31 import java.io.ObjectOutputStream;
32 import java.io.ObjectInputStream;
33 import java.io.IOException;
34 import java.util.Objects;
35
36
37 /**
38 * Used to display a "Tip" for a Component. Typically components provide api
39 * to automate the process of using <code>ToolTip</code>s.
40 * For example, any Swing component can use the <code>JComponent</code>
41 * <code>setToolTipText</code> method to specify the text
42 * for a standard tooltip. A component that wants to create a custom
43 * <code>ToolTip</code>
44 * display can override <code>JComponent</code>'s <code>createToolTip</code>
45 * method and use a subclass of this class.
46 * <p>
47 * See <a href="http://java.sun.com/docs/books/tutorial/uiswing/components/tooltip.html">How to Use Tool Tips</a>
48 * in <em>The Java Tutorial</em>
49 * for further documentation.
50 * <p>
51 * <strong>Warning:</strong> Swing is not thread safe. For more
52 * information see <a
53 * href="package-summary.html#threading">Swing's Threading
54 * Policy</a>.
55 * <p>
56 * <strong>Warning:</strong>
57 * Serialized objects of this class will not be compatible with
58 * future Swing releases. The current serialization support is
59 * appropriate for short term storage or RMI between applications running
60 * the same version of Swing. As of 1.4, support for long term storage
61 * of all JavaBeans<sup><font size="-2">TM</font></sup>
62 * has been added to the <code>java.beans</code> package.
63 * Please see {@link java.beans.XMLEncoder}.
64 *
65 * @see JComponent#setToolTipText
66 * @see JComponent#createToolTip
67 * @author Dave Moore
|
27 package javax.swing;
28 import javax.swing.plaf.*;
29 import javax.accessibility.*;
30
31 import java.io.ObjectOutputStream;
32 import java.io.ObjectInputStream;
33 import java.io.IOException;
34 import java.util.Objects;
35
36
37 /**
38 * Used to display a "Tip" for a Component. Typically components provide api
39 * to automate the process of using <code>ToolTip</code>s.
40 * For example, any Swing component can use the <code>JComponent</code>
41 * <code>setToolTipText</code> method to specify the text
42 * for a standard tooltip. A component that wants to create a custom
43 * <code>ToolTip</code>
44 * display can override <code>JComponent</code>'s <code>createToolTip</code>
45 * method and use a subclass of this class.
46 * <p>
47 * See <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/tooltip.html">How to Use Tool Tips</a>
48 * in <em>The Java Tutorial</em>
49 * for further documentation.
50 * <p>
51 * <strong>Warning:</strong> Swing is not thread safe. For more
52 * information see <a
53 * href="package-summary.html#threading">Swing's Threading
54 * Policy</a>.
55 * <p>
56 * <strong>Warning:</strong>
57 * Serialized objects of this class will not be compatible with
58 * future Swing releases. The current serialization support is
59 * appropriate for short term storage or RMI between applications running
60 * the same version of Swing. As of 1.4, support for long term storage
61 * of all JavaBeans<sup><font size="-2">TM</font></sup>
62 * has been added to the <code>java.beans</code> package.
63 * Please see {@link java.beans.XMLEncoder}.
64 *
65 * @see JComponent#setToolTipText
66 * @see JComponent#createToolTip
67 * @author Dave Moore
|