[Schmitzm-commits] r1610 - trunk/schmitzm-core/src/main/java/de/schmitzm/swing

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Jun 14 20:27:48 CEST 2011


Author: mojays
Date: 2011-06-14 20:27:48 +0200 (Tue, 14 Jun 2011)
New Revision: 1610

Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/swing/SelectableJTable.java
Log:


Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/SelectableJTable.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/SelectableJTable.java	2011-06-14 14:39:29 UTC (rev 1609)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/SelectableJTable.java	2011-06-14 18:27:48 UTC (rev 1610)
@@ -161,6 +161,8 @@
    * This method might be invoked when the table data changes completely. 
    */
   public void fitColumsAccordingToHeader() {
+    if ( getTableHeader() == null )
+      return;
     final TableCellRenderer renderer = getTableHeader().getDefaultRenderer();
     for (int i = 0; i < getColumnCount(); ++i)
       getColumnModel().getColumn(i).setPreferredWidth(



More information about the Schmitzm-commits mailing list