• Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding data to a JTable at runtime...

 
Parth Bhatt
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hii guys,

I'm doing a desktop search application where the results are to be displayed in a JTable. Specifically, The number of rows in the table depend on the number of matching files found on the disk. Also, as is obvious, a row is added to the table as soon as a result is found.

The only part remaining in the project is adding the results to the JTable n displaying it ... i need help regarding How to build such a JTable to which rows can be added as the results are found...

Thanks...
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DefaultTableModel's addRow(...)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!