Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
EDIT TorstenH.
cropped out non relevant code
Posted
Updated 28-Dec-14 22:19pm
v2
Comments
Richard MacCutchan 27-Dec-14 4:33am    
Please do not just dump a load of unformatted code and expect someone to figure out what the problem is. Explain clearly what is or is not working and show only the code relevant to the problem.

1 solution

So you want to paginate a table?
Modifiy your TableModel, add a page size and an integer Value for the pages.

page * page size + 1 = first table row to show

You might want to take a look at this example code:

http://www.java2s.com/Code/Java/Swing-JFC/PagingorpagableJTableTableModelforlargedataset.htm[^]

explains it pretty nice. no big deal.
Have fun!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900