Thanks that helped, I had that link too but I guess I missed that part.
I do have a problem with that though, Here is what it says:
TableSorter sorter = new TableSorter(new MyTableModel());
JTable table = new JTable(sorter);
sorter.setTableHeader(table.getTableHeader());
On the first line TableSorter does not have any constructors to take a modle as input, or any methods to do this either. How do I create a new tableModel then??