Nick-The-Uncharted / tablefilter-swing

Automatically exported from code.google.com/p/tablefilter-swing
1 stars 1 forks source link

Exception raised when a model is set on the table after attaching the filter header #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1- Create the JTable
2- Create the TableFilterHeader and attach it to the table
3- Set a model on the table

The exception happens when setting the comparator on the underlying row sorter: 

Exception in thread "main" java.lang.IndexOutOfBoundsException: column beyond 
range of TableModel
    at javax.swing.DefaultRowSorter.checkColumn(DefaultRowSorter.java:1202)
    at javax.swing.DefaultRowSorter.setComparator(DefaultRowSorter.java:744)
    at net.coderazzi.filters.gui.editor.FilterEditor.initComparator(FilterEditor.java:337)
    at net.coderazzi.filters.gui.editor.FilterEditor.<init>(FilterEditor.java:137)

Original issue reported on code.google.com by coderazzi on 5 Mar 2011 at 2:11

GoogleCodeExporter commented 9 years ago
Solved on version 4.1.0

Original comment by coderazzi on 14 Mar 2011 at 3:37