jdk/src/share/classes/javax/swing/JToolTip.java
Print this page
@@ -23,13 +23,15 @@
* questions.
*/
package javax.swing;
+
import javax.swing.plaf.*;
import javax.accessibility.*;
+import java.beans.BeanProperty;
import java.io.ObjectOutputStream;
import java.io.ObjectInputStream;
import java.io.IOException;
import java.util.Objects;
@@ -119,15 +121,13 @@
/**
* Sets the text to show when the tool tip is displayed.
* The string <code>tipText</code> may be <code>null</code>.
*
* @param tipText the <code>String</code> to display
- * @beaninfo
- * preferred: true
- * bound: true
- * description: Sets the text of the tooltip
*/
+ @BeanProperty(preferred = true, description
+ = "Sets the text of the tooltip")
public void setTipText(String tipText) {
String oldValue = this.tipText;
this.tipText = tipText;
firePropertyChange("tiptext", oldValue, tipText);
@@ -154,14 +154,13 @@
* <p>
* This is a bound property.
*
* @param c the <code>JComponent</code> being described
* @see JComponent#createToolTip
- * @beaninfo
- * bound: true
- * description: Sets the component that the tooltip describes.
*/
+ @BeanProperty(description
+ = "Sets the component that the tooltip describes.")
public void setComponent(JComponent c) {
JComponent oldValue = this.component;
component = c;
firePropertyChange("component", oldValue, c);