From eceea3010ff9d19a48d650e5dccb7105d66adbd2 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Sun, 25 May 2003 11:24:27 +0000 Subject: Checkbox.java, [...]: New versions from classpath. 2003-05-25 Michael Koch * java/awt/Checkbox.java, java/awt/Dialog.java, java/awt/Font.java, java/awt/Frame.java, java/awt/ScrollPaneAdjustable.java, java/awt/Scrollbar.java, java/awt/Window.java: New versions from classpath. From-SVN: r67164 --- libjava/java/awt/Dialog.java | 40 +++++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) (limited to 'libjava/java/awt/Dialog.java') diff --git a/libjava/java/awt/Dialog.java b/libjava/java/awt/Dialog.java index e7c40b14ae4..5c64dc97a87 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 - */ + * A dialog box widget class. + * + * @author Aaron M. Renn + * @author Tom Tromey + */ 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 -- cgit v1.2.3