--- old/jdk/src/share/classes/javax/swing/JPasswordField.java 2014-08-11 11:50:26.936193800 +0400 +++ new/jdk/src/share/classes/javax/swing/JPasswordField.java 2014-08-11 11:50:26.514169600 +0400 @@ -25,13 +25,12 @@ package javax.swing; import javax.swing.text.*; -import javax.swing.plaf.*; import javax.accessibility.*; +import java.beans.JavaBean; +import java.beans.BeanProperty; import java.io.ObjectOutputStream; -import java.io.ObjectInputStream; import java.io.IOException; -import java.io.*; import java.util.Arrays; /** @@ -68,13 +67,11 @@ * has been added to the java.beans package. * Please see {@link java.beans.XMLEncoder}. * - * @beaninfo - * attribute: isContainer false - * description: Allows the editing of a line of text but doesn't show the characters. - * * @author Timothy Prinzing * @since 1.2 */ +@JavaBean(description = "Allows the editing of a line of text but doesn't show the characters.") +@SwingContainer(false) @SuppressWarnings("serial") // Same-version serialization only public class JPasswordField extends JTextField { @@ -151,6 +148,7 @@ * @see JComponent#getUIClassID * @see UIDefaults#getUI */ + @BeanProperty(bound = false) public String getUIClassID() { return uiClassID; } @@ -191,10 +189,9 @@ * @param c the echo character to display * @see #echoCharIsSet * @see #getEchoChar - * @beaninfo - * description: character to display in place of the real characters - * attribute: visualUpdate true */ + @BeanProperty(bound = false, visualUpdate = true, description + = "character to display in place of the real characters") public void setEchoChar(char c) { echoChar = c; echoCharSet = true; @@ -292,6 +289,7 @@ * * @return the text */ + @BeanProperty(bound = false) public char[] getPassword() { Document doc = getDocument(); Segment txt = new Segment(); @@ -383,6 +381,7 @@ * AccessibleContext of this * JPasswordField */ + @BeanProperty(bound = false) public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJPasswordField();