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
Original issue reported on code.google.com by
coderazzi
on 5 Mar 2011 at 2:11