/[classpath]/classpath/javax/swing/JInternalFrame.java
ViewVC logotype

Diff of /classpath/javax/swing/JInternalFrame.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by rabbit78, Fri Jun 17 11:53:50 2005 UTC revision 1.18 by abalkiss, Wed Jun 22 15:09:40 2005 UTC
# Line 1305  public class JInternalFrame extends JCom Line 1305  public class JInternalFrame extends JCom
1305     */     */
1306    public void setDefaultCloseOperation(int operation)    public void setDefaultCloseOperation(int operation)
1307    {    {
1308      if (operation != DO_NOTHING_ON_CLOSE      /* Reference implementation allows invalid operations to be specified.
1309          && operation != HIDE_ON_CLOSE         In that case, behaviour defaults to DO_NOTHING_ON_CLOSE.
1310          && operation != DISPOSE_ON_CLOSE)         processWindowEvent handles the behaviour. getDefaultCloseOperation
1311        throw new Error("Close operation must be one of DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, or DISPOSE_ON_CLOSE");         must return the invalid operator code. */
1312      defaultCloseOperation = operation;      defaultCloseOperation = operation;
1313    }    }
1314    

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26