How to provide pagination support to a JTable in Swing?

后端 未结 5 547
遇见更好的自我
遇见更好的自我 2020-11-27 06:51

I have created one GUI in Swing Java in which I have used JTable.Now I want to display next page information into it by using pagination. How should I do that ?

5条回答
  •  旧巷少年郎
    2020-11-27 07:43

    I have written a Java pagination tool dataj. It uses JQuery dataTables plug-in pagination metadata to build up the result page. I have also added some client classes for Java Swing including a TableRowSorter that calls the (server side) sorting instead of sorting inside the table model. Feel free to download it and contact me if you have any questions. It's under Apache 2 license.

提交回复
热议问题