Index: javax/swing/JFrame.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/JFrame.java,v retrieving revision 1.19 diff -u -r1.19 JFrame.java --- javax/swing/JFrame.java 21 Dec 2004 19:25:10 -0000 1.19 +++ javax/swing/JFrame.java 21 Dec 2004 19:49:50 -0000 @@ -189,10 +189,6 @@ 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; } Index: javax/swing/JInternalFrame.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/JInternalFrame.java,v retrieving revision 1.12 diff -u -r1.12 JInternalFrame.java --- javax/swing/JInternalFrame.java 21 Dec 2004 19:25:10 -0000 1.12 +++ javax/swing/JInternalFrame.java 21 Dec 2004 19:49:50 -0000 @@ -1274,7 +1274,7 @@ { 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; }