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
Original report by coderazzi coderazzi (Bitbucket: coderazzi, GitHub: coderazzi).
Original issue reported on code.google.com by
coderazzi
on 2011-03-05 14:11:44