summaryrefslogtreecommitdiff
path: root/javax
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2004-12-21 19:50:07 +0000
committerMichael Koch <konqueror@gmx.de>2004-12-21 19:50:07 +0000
commit7c5f321474134b8667f30f0239994f7f57d965ca (patch)
tree6a3987c281775c707147283ecedc69a36e085556 /javax
parent250d0bd4d6b7e5f3272911518d3abf9cd7ff4dc8 (diff)
downloadclasspath-7c5f321474134b8667f30f0239994f7f57d965ca.tar.gz
2004-12-21 Michael Koch <konqueror@gmx.de>
* javax/swing/JFrame.java (setDefaultLookAndFeelDecorated): Removed wrong code again. * javax/swing/JInternalFrame.java (setDefaultCloseOperation): Fixed typo.
Diffstat (limited to 'javax')
-rw-r--r--javax/swing/JFrame.java4
-rw-r--r--javax/swing/JInternalFrame.java2
2 files changed, 1 insertions, 5 deletions
diff --git a/javax/swing/JFrame.java b/javax/swing/JFrame.java
index a32f401cc..aa641caa3 100644
--- a/javax/swing/JFrame.java
+++ b/javax/swing/JFrame.java
@@ -189,10 +189,6 @@ public class JFrame extends Frame
public static void setDefaultLookAndFeelDecorated(boolean decorated)
{
- if (operation != DO_NOTHING_ON_CLOSE
- && operation != HIDE_ON_CLOSE
- && operation != DISPOSE_ON_CLOSE),
- throw new Error("Close operation must be one of DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, or DISPOSE_ON_CLOSE");
defaultLookAndFeelDecorated = decorated;
}
diff --git a/javax/swing/JInternalFrame.java b/javax/swing/JInternalFrame.java
index 1592c2b16..7ff21e68b 100644
--- a/javax/swing/JInternalFrame.java
+++ b/javax/swing/JInternalFrame.java
@@ -1274,7 +1274,7 @@ public class JInternalFrame extends JComponent implements Accessible,
{
if (operation != DO_NOTHING_ON_CLOSE
&& operation != HIDE_ON_CLOSE
- && operation != DISPOSE_ON_CLOSE),
+ && operation != DISPOSE_ON_CLOSE)
throw new Error("Close operation must be one of DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, or DISPOSE_ON_CLOSE");
defaultCloseOperation = operation;
}