summaryrefslogtreecommitdiffstats
path: root/libjava/java/awt/Dialog.java
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-25 11:24:27 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-25 11:24:27 +0000
commitc0f9df171338117e37e4a45a4b5f1089c6ab3f48 (patch)
tree2e2b4385c6d0944dde3daf07a226888715d75aea /libjava/java/awt/Dialog.java
parent94b500e1a2e7c64757ea97dc271574994392ddb9 (diff)
downloadppe42-gcc-c0f9df171338117e37e4a45a4b5f1089c6ab3f48.tar.gz
ppe42-gcc-c0f9df171338117e37e4a45a4b5f1089c6ab3f48.zip
2003-05-25 Michael Koch <konqueror@gmx.de>
* 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
Diffstat (limited to 'libjava/java/awt/Dialog.java')
-rw-r--r--libjava/java/awt/Dialog.java40
1 files changed, 35 insertions, 5 deletions
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 <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
OpenPOWER on IntegriCloud