diff options
Diffstat (limited to 'libjava/java/awt/Dialog.java')
-rw-r--r-- | libjava/java/awt/Dialog.java | 40 |
1 files changed, 35 insertions, 5 deletions
diff --git a/libjava/java/awt/Dialog.java b/libjava/java/awt/Dialog.java index e7c40b1..5c64dc9 100644 --- a/libjava/java/awt/Dialog.java +++ b/libjava/java/awt/Dialog.java @@ -44,11 +44,11 @@ import java.awt.peer.ContainerPeer; import java.awt.peer.ComponentPeer; /** - * A dialog box widget class. - * - * @author Aaron M. Renn (arenn@urbanophile.com) - * @author Tom Tromey <tromey@redhat.com> - */ + * A dialog box widget class. + * + * @author Aaron M. Renn <arenn@urbanophile.com> + * @author Tom Tromey <tromey@redhat.com> + */ public class Dialog extends Window { @@ -81,6 +81,11 @@ private boolean resizable; */ private String title; + /** + * This field indicates whether the dialog is undecorated or not. + */ + private boolean undecorated = false; + /*************************************************************************/ /* @@ -395,5 +400,30 @@ paramString() ",resizable=" + resizable + "," + super.paramString()); } + /** + * Returns whether this frame is undecorated or not. + * + * @since 1.4 + */ + public boolean isUndecorated () + { + return undecorated; + } + + /** + * Disables or enables decorations for this frame. This method can only be + * called while the frame is not displayable. + * + * @exception IllegalComponentStateException If this frame is displayable. + * + * @since 1.4 + */ + public void setUndecorated (boolean undecorated) + { + if (isDisplayable ()) + throw new IllegalComponentStateException (); + + this.undecorated = undecorated; + } } // class Dialog |