Pagination of a Jtable
Posted on 2007-11-16
I need some assistance with a jtable. I have a panel that displays a jtable and the jtable is displaying the first 100 records. I need to implement pagination but not sure how to go about it. I want to have a next and previous button and just display 100 records at a time. Right now there are only about 400 records but it will probably grow in the future. So far I programmed one button and it returns 100 records but it appends it on to the existing table and I am not sure how to not do that. I found an article on JavaWorld about pagination but it wasnt working for me. Any suggestions? Thanks.