Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable problem, urgent!! Please help!!!!!

 
Tejaswini Shirkhedkar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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
Posts: 1071
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can call the setDataVector method on the DefaultTableModel to change what is in the table.
 
Matt Fielder
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its really not that urgent is it!!!
 
Ken Blair
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic