R
RedGrittyBrick
tobleron said:What I want to do is :
1. Open the text file, extract the values.
2. Construct the JTable using those values, including rows and columns
values.
3. Add select option in each row, so user can select which record will
be processed.
4. Add "OK" button to process each selected records.
I hope you understand what I'm figuring out.
Points 1, 2 and 3 are handled by the working program I posted in this
thread earlier:
<http://groups.google.com/group/comp.lang.java.programmer/msg/5416a54b511eb2a6>
For point 4, I'd add a JButton and an ActionListener,
I'd add a `getID(int row)` method to TextFileModel,
create a method `process(ID id) in FileTable
and call it in the ActionListener:
processID(model.getID(table.getSelectedRow()))