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

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


  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&trade;
  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
  68  * @author Rich Shiavi

  69  */
  70 @SuppressWarnings("serial")
  71 public class JToolTip extends JComponent implements Accessible {
  72     /**
  73      * @see #getUIClassID
  74      * @see #readObject
  75      */
  76     private static final String uiClassID = "ToolTipUI";
  77 
  78     String tipText;
  79     JComponent component;
  80 
  81     /** Creates a tool tip. */
  82     public JToolTip() {
  83         setOpaque(true);
  84         updateUI();
  85     }
  86 
  87     /**
  88      * Returns the L&amp;F object that renders this component.




  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&trade;
  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
  68  * @author Rich Shiavi
  69  * @since 1.2
  70  */
  71 @SuppressWarnings("serial")
  72 public class JToolTip extends JComponent implements Accessible {
  73     /**
  74      * @see #getUIClassID
  75      * @see #readObject
  76      */
  77     private static final String uiClassID = "ToolTipUI";
  78 
  79     String tipText;
  80     JComponent component;
  81 
  82     /** Creates a tool tip. */
  83     public JToolTip() {
  84         setOpaque(true);
  85         updateUI();
  86     }
  87 
  88     /**
  89      * Returns the L&amp;F object that renders this component.