posted 21 years ago
I've tried everything, including a search on the ranch but I couldn't really find a good example to get me started. Simply put, what I need to do is make a JTable dynamically grow by taking selected rows from some other table.
I'd appreciate if you could tell me what goes in the addSelectedmethod in the code below. I'd also like to have a handle to the underlying TableModel for this dynamic table so that I can then print out all the rows that were added to the dynamic table.
Code overview -
There are 2 tables, dataTable & scheduledTable
dataTable provides the data & you can respawn it with the "Respawn" button
Rows with the boolean column selected in dataTable should be added to the scheuledTable when the user clicks "Add"
Respawn, select & add to make the scheduledTable grow dynamically without loosing any previous rows.
Thanx
Ashish Hareet