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

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

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

revision 1.13 by rabbit78, Fri Jun 17 11:53:50 2005 UTC revision 1.14 by abalkiss, Wed Jun 22 15:09:40 2005 UTC
# Line 547  public class JDialog extends Dialog impl Line 547  public class JDialog extends Dialog impl
547     */     */
548    public void setDefaultCloseOperation(int operation)    public void setDefaultCloseOperation(int operation)
549    {    {
550      if (operation == DO_NOTHING_ON_CLOSE ||      /* Reference implementation allows invalid operations
551          operation == HIDE_ON_CLOSE ||         to be specified.  If so, getDefaultCloseOperation
552          operation == DISPOSE_ON_CLOSE)         must return the invalid code, and the behaviour
553        close_action = operation;         defaults to DO_NOTHING_ON_CLOSE.  processWindowEvent
554      else         above handles this */
555        // accept illegal value and set the property to the default value,      close_action = operation;
       // that's what the reference implementation does  
       close_action = DO_NOTHING_ON_CLOSE;  
556    }    }
557    
558    /**    /**

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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