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/src/java/org/apache/log4j/chainsaw JSortTable.java
Date Tue, 30 Sep 2003 23:19:10 GMT
psmith      2003/09/30 16:19:10

  Modified:    src/java/org/apache/log4j/chainsaw JSortTable.java
  Log:
  Fixed mouse listener condition that was triggering
  a sort when using the right mouse button (not intuitive and
  will interfere with other popup menus appearing in the
  table header) and was also triggering on a single click
  (not standard).
  
  Revision  Changes    Path
  1.3       +7 -0      jakarta-log4j/src/java/org/apache/log4j/chainsaw/JSortTable.java
  
  Index: JSortTable.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/chainsaw/JSortTable.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JSortTable.java	19 Sep 2003 03:52:42 -0000	1.2
  +++ JSortTable.java	30 Sep 2003 23:19:09 -0000	1.3
  @@ -158,6 +158,13 @@
     }
   
     public void mouseClicked(MouseEvent event) {
  +  	
  +  	if(event.getClickCount()<2 || event.isPopupTrigger()){
  +  		return;
  +  	}else if(event.getClickCount()>1 && event.getButton() == MouseEvent.BUTTON2_MASK){
  +  		return;
  +  	}
  +  	
       TableColumnModel colModel = getColumnModel();
       int index = colModel.getColumnIndexAtX(event.getX());
       int modelIndex = colModel.getColumn(index).getModelIndex();
  
  
  

---------------------------------------------------------------------
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