You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by sd...@apache.org on 2004/06/04 08:00:20 UTC

cvs commit: logging-log4j/src/java/org/apache/log4j/chainsaw ChainsawTabbedPane.java PopupListener.java

sdeboy      2004/06/03 23:00:20

  Modified:    src/java/org/apache/log4j/chainsaw ChainsawTabbedPane.java
                        PopupListener.java
  Log:
  Due to a jdk mouseevent handler bug (jtabbedpane, scroll_layout and jdk1.4) reverting change to support scroll layout
  
  Revision  Changes    Path
  1.6       +0 -17     logging-log4j/src/java/org/apache/log4j/chainsaw/ChainsawTabbedPane.java
  
  Index: ChainsawTabbedPane.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/chainsaw/ChainsawTabbedPane.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ChainsawTabbedPane.java	9 Apr 2004 07:54:17 -0000	1.5
  +++ ChainsawTabbedPane.java	4 Jun 2004 06:00:20 -0000	1.6
  @@ -22,8 +22,6 @@
   
   import java.awt.Component;
   
  -import java.lang.reflect.Method;
  -
   import javax.swing.Icon;
   import javax.swing.JComponent;
   import javax.swing.JTabbedPane;
  @@ -51,24 +49,9 @@
      *
      * Create the tabbed pane.  
      *
  -   * Attempts to call via reflection the 
  -   * 'setTabLayoutPolicy' method to use a 'scroll layout'
  -   * if method exists (available as of jdk1.4)
  -   * 
      */
     public ChainsawTabbedPane() {
       super();
  -
  -    try {
  -      Class tabClass = JTabbedPane.class;
  -      Class[] params = new Class[]{Integer.TYPE};
  -
  -      Method method = tabClass.getMethod("setTabLayoutPolicy", params);
  -      Object[] args = new Object[]{new Integer(1)};
  -      method.invoke(this, args);
  -    } catch (Exception e) {
  -      //ignore
  -    }
     }
   
     /**
  
  
  
  1.4       +5 -0      logging-log4j/src/java/org/apache/log4j/chainsaw/PopupListener.java
  
  Index: PopupListener.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/chainsaw/PopupListener.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PopupListener.java	27 Feb 2004 16:47:29 -0000	1.3
  +++ PopupListener.java	4 Jun 2004 06:00:20 -0000	1.4
  @@ -45,6 +45,11 @@
     public void mouseReleased(MouseEvent e) {
       checkPopup(e);
     }
  +  
  +  public void mouseClicked(MouseEvent e)
  +  {
  +      checkPopup(e);
  +  }
   
     private void checkPopup(MouseEvent e) {
       if (e.isPopupTrigger()) {
  
  
  

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