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
Joined: Dec 29, 2004
You can call the setDataVector method on the DefaultTableModel to change what is in the table.
Joined: Oct 27, 2004
Its really not that urgent is it!!!
Joined: Jul 15, 2003
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!