coderazzi / tablefilter-swing

TableFilter is a set of Swing components to support user-driven filtering on table.
https://coderazzi.net/tablefilter
MIT License
7 stars 2 forks source link

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

Closed coderazzi closed 9 years ago

coderazzi commented 13 years ago

Original report by coderazzi coderazzi (Bitbucket: coderazzi, GitHub: coderazzi).


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 2011-03-05 14:11:44

coderazzi commented 13 years ago

Original comment by coderazzi coderazzi (Bitbucket: coderazzi, GitHub: coderazzi).


Solved on version 4.1.0

Original issue reported on code.google.com by coderazzi on 2011-03-14 03:37:21

coderazzi commented 9 years ago

Original comment by coderazzi coderazzi (Bitbucket: coderazzi, GitHub: coderazzi).


Already resolved (previously, before migrating to BitBucket)