Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable problem  RSS feed

 
Jude Fawly
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

when i use the DefaultTableModel like this:
DefaultTableModel df = new DefaultTableModel()
i can add rows and columns to the table using addColumn and addRows method.
But when i use this class to load my JTable with data from the database, i can not
add rows and columns.
How can i add rows to the JTable when i use my own class that extends DefaultTableModel to load the JTable with
data from the database!

thanks.
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!