[Schmitzm-commits] r60 - trunk/src/schmitzm/geotools/gui

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Apr 17 19:37:34 CEST 2009


Author: mojays
Date: 2009-04-17 19:37:34 +0200 (Fri, 17 Apr 2009)
New Revision: 60

Modified:
   trunk/src/schmitzm/geotools/gui/FeatureTablePane.java
Log:


Modified: trunk/src/schmitzm/geotools/gui/FeatureTablePane.java
===================================================================
--- trunk/src/schmitzm/geotools/gui/FeatureTablePane.java	2009-04-17 17:26:58 UTC (rev 59)
+++ trunk/src/schmitzm/geotools/gui/FeatureTablePane.java	2009-04-17 17:37:34 UTC (rev 60)
@@ -27,6 +27,7 @@
 import javax.swing.event.TableModelListener;
 import javax.swing.table.AbstractTableModel;
 import javax.swing.table.TableModel;
+import javax.swing.table.TableRowSorter;
 
 import org.geotools.feature.AttributeType;
 import org.geotools.feature.Feature;
@@ -42,6 +43,7 @@
 import schmitzm.geotools.feature.FeatureUtil;
 import schmitzm.swing.JPanel;
 import schmitzm.swing.MultiSplitPane;
+import schmitzm.swing.SortedJTable;
 import schmitzm.swing.SwingUtil;
 
 /**
@@ -146,7 +148,6 @@
     } else {
       add(featuresTableScrollPane);
     }
-	setFeatureCollection(model.getFeatureCollection());
   }
 
   /**
@@ -183,7 +184,7 @@
     }
 
     // Tabelle fuer FeatureCollection
-    featuresTable = new JTable(featuresTableModel);
+    featuresTable = new SortedJTable(featuresTableModel);
     featuresTable.setAutoResizeMode( JTable.AUTO_RESIZE_OFF );
     featuresTable.setColumnSelectionAllowed(false);
     featuresTable.setSelectionMode( ListSelectionModel.MULTIPLE_INTERVAL_SELECTION );



More information about the Schmitzm-commits mailing list