logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From psm...@apache.org
Subject cvs commit: jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw ChainsawTabbledPane.java
Date Mon, 05 May 2003 03:48:19 GMT
psmith      2003/05/04 20:48:19

  Modified:    src/java/org/apache/log4j/chainsaw ChainsawTabbledPane.java
  Log:
  added remove method to override super class and invoke state change
  
  Revision  Changes    Path
  1.2       +7 -0      jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/ChainsawTabbledPane.java
  
  Index: ChainsawTabbledPane.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j-sandbox/src/java/org/apache/log4j/chainsaw/ChainsawTabbledPane.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ChainsawTabbledPane.java	5 May 2003 03:11:00 -0000	1.1
  +++ ChainsawTabbledPane.java	5 May 2003 03:48:19 -0000	1.2
  @@ -4,6 +4,8 @@
   */
   package org.apache.log4j.chainsaw;
   
  +import java.awt.Component;
  +
   import javax.swing.JComponent;
   import javax.swing.JTabbedPane;
   
  @@ -62,6 +64,11 @@
      */
     public void addANewTab(String name, JComponent component) {
       super.insertTab(name, null, component, null, 0);
  +    super.fireStateChanged();
  +  }
  +  
  +  public void remove(Component component) {
  +    super.remove(component);
       super.fireStateChanged();
     }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org


Mime
View raw message