psmith      2003/12/22 14:02:22

  Modified:    src/java/org/apache/log4j/chainsaw LogUI.java
  Log:
  fixed a bug where closing the frame by using the standard
  window close widget (the 'x' in the top right hand corner
  for example) caused the main frame to disappear but
  not exit if you chose to cancel the exit confirmation.
  
  Revision  Changes    Path
  1.64      +11 -0     jakarta-log4j/src/java/org/apache/log4j/chainsaw/LogUI.java
  
  Index: LogUI.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/chainsaw/LogUI.java,v
  retrieving revision 1.63
  retrieving revision 1.64
  diff -u -r1.63 -r1.64
  --- LogUI.java        22 Dec 2003 11:00:02 -0000      1.63
  +++ LogUI.java        22 Dec 2003 22:02:21 -0000      1.64
  @@ -1784,4 +1784,15 @@
     {
       return applicationPreferenceModel;
     }
  +  /* (non-Javadoc)
  +   * @see java.awt.Window#processWindowEvent(java.awt.event.WindowEvent)
  +   */
  +  protected void processWindowEvent(WindowEvent e) {
  +    
  +    if(e.getID() == WindowEvent.WINDOW_CLOSING) {
  +      exit();
  +      return;
  +    }
  +    super.processWindowEvent(e);
  +  }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to