--- old/jdk/src/share/classes/javax/swing/JToolTip.java 2014-08-11 11:51:18.441139700 +0400
+++ new/jdk/src/share/classes/javax/swing/JToolTip.java 2014-08-11 11:51:18.018115500 +0400
@@ -25,9 +25,11 @@
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;
@@ -121,11 +123,9 @@
* The string tipText
may be null
.
*
* @param tipText the String
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;
@@ -156,10 +156,9 @@
*
* @param c the JComponent
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;