From c0f9df171338117e37e4a45a4b5f1089c6ab3f48 Mon Sep 17 00:00:00 2001 From: mkoch Date: Sun, 25 May 2003 11:24:27 +0000 Subject: 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67164 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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