How to create a dynamic table for entering the matrix using JTABLE
Answer 1
Structure and data are stored in TableModel.
Form you need TableModel, you can use DefaultTableModel and substitute in JTABLE.
detail you can see here https://docs.orcle.com /javase/tutorial/uiswing/components/Table.html