@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)

Sets the type of Window decorations (such as borders, widgets for closing a Window, title ...) the JRootPane should provide. The default is to provide no Window decorations (NONE).

This is only a hint, and some look and feels may not support this. This is a bound property.

Parameters:
windowDecorationStyle    Constant identifying Window decorations to provide.

Exceptions:
IllegalArgumentException    if style is not one of: NONE, FRAME, PLAIN_DIALOG, INFORMATION_DIALOG, ERROR_DIALOG, COLOR_CHOOSER_DIALOG, FILE_CHOOSER_DIALOG, QUESTION_DIALOG, or WARNING_DIALOG.

See also:
JDialog.setDefaultLookAndFeelDecorated, JFrame.setDefaultLookAndFeelDecorated, LookAndFeel.getSupportsWindowDecorations

Since:  1.4