This thread discuss about how to define how many rows are displayed by the JTable. See kleopatra's answer for functionnal