how to page though DB table with JTable?

R

robert walker

Hi all, is there a general technique for
retreiving say 500 rows at a time from a DB table and displaying it in
a JTable, I am wondering if I have to write this myself.

The DB table will prob have way to many to ull back in one hit to the
client.

I supposed I could keep track of the current index that the GUI is on,
then when the user clicks "next" button, do the sql again and then do
a
resultSet.next() a bunch of times to skip to the next block rows I
wish to retrieve.

any free utils that can help with this or is this the general free way
to accomplish this issue.

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top