up
Type: Posts; User: bhk
public class MyTable extends TableModel{
public static final int C = 12;
public static final int R = 25;
public String[][] data;
public MyTable(String[] h, String[][] data) {
...
My table model implements:
public boolean isCellEditable(int rowIndex, int columnsIndex);
public void removeTableModelListerner(TableModelListener s);
public void...
I got another question, i have to implement a Event Listener that catch the event of a edited cell in the tab.
Where and how i can implements this?
Ok, i found the error, the method public Class<?> getColumnClass(int columnIndex) was not implemented (throw new UnsupportedOperationException("Not supported yet."); ) but the program compiled and...
When i create a JTable in this way:
JTable tab = new JTable(a,b);
where a is an String [][] and b String[]
The problem is set the TableModel, when i insert this line: