title: Paginating data in JTable
body: <p>There is a jbutton in my Jpanel. When I clicked it, it loads up my Jtable, sometimes a query return so many records (500 rows). So I want to restrict it to 5 records.</p>
  
  <p>When query return I want to count it; if it's higher than 5 then Jtable shows up only first 5 record, when user click Forward button it will shows up next 5 record. When user click Back button it will show previous 5 record.</p>
  
  <p>How can I do this? Is there any example for this with TableModel? </p>