This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

adding dynamically rows in JTable

 
Roshini Sridharan
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai all,
I would like to get the codings for how to add rows dynamically in JTable, since i am not able to get it from the tutorials as it was mentioned in a reply. It will be very helpful anybody could explain thru sample codings.
Thanx in advance
RoshiniSridharan
 
Rohan Baweja
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
If you've seen the tutorial they have shown 2 ways of creating tables. The second method explained to create tables is by using an AbstractTableModel class. Try to see the class DefaultTableModel. This is a very useful class for the funtions you need to perform such as adding , moving , removing rows.
Hope it helps you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!