--- old/jdk/src/share/classes/javax/swing/JDesktopPane.java 2014-08-11 11:49:48.059970200 +0400 +++ new/jdk/src/share/classes/javax/swing/JDesktopPane.java 2014-08-11 11:49:47.730951400 +0400 @@ -22,7 +22,6 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ - package javax.swing; import java.util.List; @@ -34,15 +33,14 @@ import java.awt.Component; import java.awt.Container; -import java.awt.DefaultFocusTraversalPolicy; -import java.awt.FocusTraversalPolicy; -import java.awt.Window; +import java.beans.JavaBean; +import java.beans.BeanProperty; import java.io.ObjectOutputStream; -import java.io.ObjectInputStream; import java.io.IOException; import java.beans.PropertyVetoException; import java.util.Set; import java.util.TreeSet; + /** * A container used to create a multiple-document interface or a virtual desktop. * You create JInternalFrame objects and add them to the @@ -87,6 +85,7 @@ * @author David Kloba * @since 1.2 */ +@JavaBean(defaultProperty = "UI") @SuppressWarnings("serial") // Same-version serialization only public class JDesktopPane extends JLayeredPane implements Accessible { @@ -162,12 +161,9 @@ * * @param ui the DesktopPaneUI L&F object * @see UIDefaults#getUI - * @beaninfo - * bound: true - * hidden: true - * attribute: visualUpdate true - * description: The UI object that implements the Component's LookAndFeel. */ + @BeanProperty(hidden = true, visualUpdate = true, description + = "The UI object that implements the Component's LookAndFeel.") public void setUI(DesktopPaneUI ui) { super.setUI(ui); } @@ -182,13 +178,12 @@ * @see #LIVE_DRAG_MODE * @see #OUTLINE_DRAG_MODE * - * @beaninfo - * bound: true - * description: Dragging style for internal frame children. - * enum: LIVE_DRAG_MODE JDesktopPane.LIVE_DRAG_MODE - * OUTLINE_DRAG_MODE JDesktopPane.OUTLINE_DRAG_MODE * @since 1.3 */ + @BeanProperty(enumerationValues = { + "JDesktopPane.LIVE_DRAG_MODE", + "JDesktopPane.OUTLINE_DRAG_MODE"}, description + = "Dragging style for internal frame children.") public void setDragMode(int dragMode) { int oldDragMode = this.dragMode; this.dragMode = dragMode; @@ -224,12 +219,9 @@ * {@code LookAndFeel}. * * @param d the DesktopManager to use - * - * @beaninfo - * bound: true - * description: Desktop manager to handle the internal frames in the - * desktop pane. */ + @BeanProperty(description + = "Desktop manager to handle the internal frames in the desktop pane.") public void setDesktopManager(DesktopManager d) { DesktopManager oldValue = desktopManager; desktopManager = d; @@ -255,6 +247,7 @@ * @see JComponent#getUIClassID * @see UIDefaults#getUI */ + @BeanProperty(bound = false) public String getUIClassID() { return uiClassID; } @@ -265,6 +258,7 @@ * * @return an array of JInternalFrame objects */ + @BeanProperty(bound = false) public JInternalFrame[] getAllFrames() { return getAllFrames(this).toArray(new JInternalFrame[0]); } @@ -599,6 +593,7 @@ * @return an AccessibleJDesktopPane that serves as the * AccessibleContext of this JDesktopPane */ + @BeanProperty(bound = false) public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJDesktopPane();