logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From psm...@apache.org
Subject cvs commit: logging-log4j/src/java/org/apache/log4j/chainsaw/vfs FileObjectTable.java
Date Fri, 21 May 2004 04:53:01 GMT
psmith      2004/05/20 21:53:01

  Modified:    src/java/org/apache/log4j/chainsaw/vfs FileObjectTable.java
  Log:
  fixed bug where if the row was selected, the alignment of some columns was incorrect.
  
  Thanks to Scott for picking that one up.
  
  Revision  Changes    Path
  1.3       +3 -5      logging-log4j/src/java/org/apache/log4j/chainsaw/vfs/FileObjectTable.java
  
  Index: FileObjectTable.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/chainsaw/vfs/FileObjectTable.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FileObjectTable.java	21 May 2004 04:24:16 -0000	1.2
  +++ FileObjectTable.java	21 May 2004 04:53:01 -0000	1.3
  @@ -61,9 +61,6 @@
   					isSelected, hasFocus, row, column);
               JLabel label =((JLabel)component);
   			
  -			if(isSelected) {
  -				return component;   
  -			}
   			switch(column) {
                   case 0:
                   	label.setHorizontalAlignment(JLabel.LEFT);
  @@ -72,12 +69,13 @@
                       label.setHorizontalAlignment(JLabel.RIGHT);
                       break;
               }
  +
   			/**
   			 * Colourize based on row striping
   			 */
  -			if ((row % 2) != 0) {
  +			if (!isSelected && (row % 2) != 0) {
   				component.setBackground(ChainsawConstants.COLOR_ODD_ROW);
  -			} else {
  +			} else if(!isSelected){
   				component.setBackground(ChainsawConstants.COLOR_EVEN_ROW);
   			}
   			return component;
  
  
  

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


Mime
View raw message