jdk/src/share/classes/javax/swing/JRootPane.java
Print this page
*** 32,41 ****
--- 32,42 ----
import javax.accessibility.*;
import javax.swing.plaf.RootPaneUI;
import java.util.Vector;
import java.io.Serializable;
import javax.swing.border.*;
+
import sun.awt.AWTAccessor;
import sun.security.action.GetBooleanAction;
/**
*** 419,443 ****
* <code>PLAIN_DIALOG</code>, <code>INFORMATION_DIALOG</code>,
* <code>ERROR_DIALOG</code>, <code>COLOR_CHOOSER_DIALOG</code>,
* <code>FILE_CHOOSER_DIALOG</code>, <code>QUESTION_DIALOG</code>, or
* <code>WARNING_DIALOG</code>.
* @since 1.4
- * @beaninfo
- * bound: true
- * enum: NONE JRootPane.NONE
- * FRAME JRootPane.FRAME
- * PLAIN_DIALOG JRootPane.PLAIN_DIALOG
- * INFORMATION_DIALOG JRootPane.INFORMATION_DIALOG
- * ERROR_DIALOG JRootPane.ERROR_DIALOG
- * COLOR_CHOOSER_DIALOG JRootPane.COLOR_CHOOSER_DIALOG
- * FILE_CHOOSER_DIALOG JRootPane.FILE_CHOOSER_DIALOG
- * QUESTION_DIALOG JRootPane.QUESTION_DIALOG
- * WARNING_DIALOG JRootPane.WARNING_DIALOG
- * expert: true
- * attribute: visualUpdate true
- * description: Identifies the type of Window decorations to provide
*/
public void setWindowDecorationStyle(int windowDecorationStyle) {
if (windowDecorationStyle < 0 ||
windowDecorationStyle > WARNING_DIALOG) {
throw new IllegalArgumentException("Invalid decoration style");
}
--- 420,441 ----
* <code>PLAIN_DIALOG</code>, <code>INFORMATION_DIALOG</code>,
* <code>ERROR_DIALOG</code>, <code>COLOR_CHOOSER_DIALOG</code>,
* <code>FILE_CHOOSER_DIALOG</code>, <code>QUESTION_DIALOG</code>, or
* <code>WARNING_DIALOG</code>.
* @since 1.4
*/
+ @BeanProperty(expert = true, visualUpdate = true, enumerationValues = {
+ "JRootPane.NONE",
+ "JRootPane.FRAME",
+ "JRootPane.PLAIN_DIALOG",
+ "JRootPane.INFORMATION_DIALOG",
+ "JRootPane.ERROR_DIALOG",
+ "JRootPane.COLOR_CHOOSER_DIALOG",
+ "JRootPane.FILE_CHOOSER_DIALOG",
+ "JRootPane.QUESTION_DIALOG",
+ "JRootPane.WARNING_DIALOG"}, description
+ = "Identifies the type of Window decorations to provide")
public void setWindowDecorationStyle(int windowDecorationStyle) {
if (windowDecorationStyle < 0 ||
windowDecorationStyle > WARNING_DIALOG) {
throw new IllegalArgumentException("Invalid decoration style");
}
*** 461,478 ****
/**
* Sets the L&F object that renders this component.
*
* @param ui the <code>LabelUI</code> L&F object
* @see UIDefaults#getUI
- * @beaninfo
- * bound: true
- * hidden: true
- * expert: true
- * attribute: visualUpdate true
- * description: The UI object that implements the Component's LookAndFeel.
* @since 1.3
*/
public void setUI(RootPaneUI ui) {
super.setUI(ui);
}
--- 459,472 ----
/**
* Sets the L&F object that renders this component.
*
* @param ui the <code>LabelUI</code> L&F object
* @see UIDefaults#getUI
* @since 1.3
*/
+ @BeanProperty(expert = true, hidden = true, visualUpdate = true, description
+ = "The UI object that implements the Component's LookAndFeel.")
public void setUI(RootPaneUI ui) {
super.setUI(ui);
}
*** 781,794 ****
* To remove a default button from this root pane, set this
* property to <code>null</code>.
*
* @see JButton#isDefaultButton
* @param defaultButton the <code>JButton</code> which is to be the default button
- *
- * @beaninfo
- * description: The button activated by default in this root pane
*/
public void setDefaultButton(JButton defaultButton) {
JButton oldDefault = this.defaultButton;
if (oldDefault != defaultButton) {
this.defaultButton = defaultButton;
--- 775,787 ----
* To remove a default button from this root pane, set this
* property to <code>null</code>.
*
* @see JButton#isDefaultButton
* @param defaultButton the <code>JButton</code> which is to be the default button
*/
+ @BeanProperty(description
+ = "The button activated by default in this root pane")
public void setDefaultButton(JButton defaultButton) {
JButton oldDefault = this.defaultButton;
if (oldDefault != defaultButton) {
this.defaultButton = defaultButton;