• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problems with JTable  RSS feed

 
kavita dodamani
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I prepared a JTable. I want to extract the values from the database & put them into the JTable.So,Please give me the tips.
Thanku
 
Vijay
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use TableModel. A table gets its data from an object that implements the TableModel interface.
 
Jason Steele
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just iterate through the ResultSet and add them to your TableModel.


real generic...and REAL basic...but when you get the hang of this, then move on to bigger and better things.

Good Luck!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!