I want to have a JTable in my GUI that has fixed number ( and names ) of columns but variable number of rows. The number of rows depend upon the number of records retrieved from the database when the specified query is executed. Also, I want to display only a fixed number of records at a time, say 30. Can i have a facility where user can press a NEXT button to see the next bunch of records. Please help!!! This is urgent!!! Thanks
Teju
Steven Bell
Ranch Hand
Joined: Dec 29, 2004
Posts: 1071
posted
0
You can call the setDataVector method on the DefaultTableModel to change what is in the table.
Matt Fielder
Ranch Hand
Joined: Oct 27, 2004
Posts: 158
posted
0
Its really not that urgent is it!!!
Ken Blair
Ranch Hand
Joined: Jul 15, 2003
Posts: 1078
posted
0
What you mentioned is quite simple, do you expect us to write all your code for you? Why don't you explain what part of the implementation is giving you problems and we can go from there. Do you not understand how to add rows? How to set a fixed number of columns? Where's the issue here!
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.