Hi,
I have a TableModel Class that extends AbstractTableModel and here I override methods like getRowCount(),getColumnCount()
and in the main class I have
TableModel model = new TableModel(datafilepath);
JTable table = new JTable();
table.setModel(model);
and now how do I add the following in the TableModel Class as I do not want these code in the main class.
Correct me if am wrong
I am using NetBeans 6.7.1 I tried several things before posting my Question in this forum.
I tried including the following code in the TableModel Class
Any suggestion, hint will help.
Thank you all in advance
I have a TableModel Class that extends AbstractTableModel and here I override methods like getRowCount(),getColumnCount()
and in the main class I have
TableModel model = new TableModel(datafilepath);
JTable table = new JTable();
table.setModel(model);
and now how do I add the following in the TableModel Class as I do not want these code in the main class.
Correct me if am wrong
I am using NetBeans 6.7.1 I tried several things before posting my Question in this forum.
I tried including the following code in the TableModel Class
Any suggestion, hint will help.
Thank you all in advance