Multipage JTable: impossible to display less items than rows
问题 I realized a JTable with a custom AbstractTableModel for implementing paging. I wanna show 5 item per page, but I've a problem: if I have N item to show (with N which is a multiple of 5) everything it's ok, but if I, for example, have 14 element to show, I get an exception. The problem is that the method for getting each cell value, goes out of bound. In particular the problem is in method public Object getValueAt(int row, int col) { int realRow = row + (pageOffset * pageSize); return data