I have used a tutorial to see how to implement JTable but I don’t know how exactly access the data of each cell to extract the data that the user put in these.
The table has 2 column and N rows
In the first column there is a String in the second there is a int
The tutorial that I have used is this
Every
JTablehas a data-model connected with it. Users may add data to this data model (e.g. by calling to thejavax.swing.table.TableModel.setValueAt(Object, int, int)method) andJTablethen displays them. In order to process the data from theJTableone can use the following approach: