cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r404899 - /incubator/cayenne/main/trunk/cayenne/cayenne-java/src/modeler/java/org/objectstyle/cayenne/swing/TableBinding.java
Date Mon, 08 May 2006 03:02:23 GMT
Author: aadamchik
Date: Sun May  7 20:02:21 2006
New Revision: 404899

URL: http://svn.apache.org/viewcvs?rev=404899&view=rev
Log:
CAY-513

Modified:
    incubator/cayenne/main/trunk/cayenne/cayenne-java/src/modeler/java/org/objectstyle/cayenne/swing/TableBinding.java

Modified: incubator/cayenne/main/trunk/cayenne/cayenne-java/src/modeler/java/org/objectstyle/cayenne/swing/TableBinding.java
URL: http://svn.apache.org/viewcvs/incubator/cayenne/main/trunk/cayenne/cayenne-java/src/modeler/java/org/objectstyle/cayenne/swing/TableBinding.java?rev=404899&r1=404898&r2=404899&view=diff
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/cayenne-java/src/modeler/java/org/objectstyle/cayenne/swing/TableBinding.java
(original)
+++ incubator/cayenne/main/trunk/cayenne/cayenne-java/src/modeler/java/org/objectstyle/cayenne/swing/TableBinding.java
Sun May  7 20:02:21 2006
@@ -15,6 +15,7 @@
 import javax.swing.table.TableModel;
 
 import org.apache.commons.collections.map.SingletonMap;
+import org.objectstyle.cayenne.util.Util;
 
 /**
  * A binding for a JTable.
@@ -153,7 +154,9 @@
         }
 
         public String getColumnName(int column) {
-            return headers[column];
+            // per CAY-513 - if an empty string is passed for header, table header will
+            // have zero height on Windows... So we have to check for this condition
+            return Util.isEmptyString(headers[column]) ? " " : headers[column];
         }
 
         public Class getColumnClass(int columnIndex) {



Mime
View raw message