logging-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sde...@apache.org
Subject svn commit: r939199 - /logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/TableColorizingRenderer.java
Date Thu, 29 Apr 2010 05:02:00 GMT
Author: sdeboy
Date: Thu Apr 29 05:02:00 2010
New Revision: 939199

URL: http://svn.apache.org/viewvc?rev=939199&view=rev
Log:
Don't set height on individual rows if msg wrapping is off

Modified:
    logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/TableColorizingRenderer.java

Modified: logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/TableColorizingRenderer.java
URL: http://svn.apache.org/viewvc/logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/TableColorizingRenderer.java?rev=939199&r1=939198&r2=939199&view=diff
==============================================================================
--- logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/TableColorizingRenderer.java
(original)
+++ logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/TableColorizingRenderer.java
Thu Apr 29 05:02:00 2010
@@ -144,7 +144,7 @@ public class TableColorizingRenderer ext
         return super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row,
col);
     }
 
-    JComponent component = null;
+    JComponent component;
     switch (colIndex) {
     case ChainsawColumns.INDEX_THROWABLE_COL_NAME:
       if (value instanceof String[] && ((String[])value).length > 0){
@@ -197,10 +197,6 @@ public class TableColorizingRenderer ext
             if(tableRowHeight < msgPanelPrefHeight/* && calculatedHeight >
tableRowHeight*/) {
                 table.setRowHeight(row, Math.max(ChainsawConstants.DEFAULT_ROW_HEIGHT, msgPanelPrefHeight));
             }
-        } else {
-            msgTextArea.setSize(new Dimension(width, ChainsawConstants.DEFAULT_ROW_HEIGHT));
-            int msgPanelPrefHeight = msgPanel.getPreferredSize().height;
-            table.setRowHeight(Math.max(ChainsawConstants.DEFAULT_ROW_HEIGHT, msgPanelPrefHeight));
         }
         component = msgPanel;
         break;



Mime
View raw message