Peter Choi

Greenhorn
+ Follow
since May 17, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Peter Choi

Originally posted by Doug Melzer:
Take a look at DefaultTableModel and AbstractTableModel.


Doug
Thanks for the information, I decided to use the AbstractTableModel and implement a vector to hold my table Data, every time the vector gets a new element, i just call fireTableRowInserted() method. In this way table will auto increse a new row. of couse the vector initialised as null.
Cheers
Peter
Can anyone tell me how to dynamically add a row in a JTable and populate it with data that is created at runtime. The data would be populated from an array of Strings.