DataModelpublic class DataModel extends AbstractTableModel
Fields Summary |
---|
Object[] | data |
Constructors Summary |
---|
DataModel()
addTableModelListener(new TML());
|
Methods Summary |
---|
public int | getColumnCount()
return data[0].length;
| public int | getRowCount()
return data.length;
| public java.lang.Object | getValueAt(int row, int col)
return data[row][col];
| public boolean | isCellEditable(int row, int col)
return true;
| public void | setValueAt(java.lang.Object val, int row, int col)
data[row][col] = val;
// Indicate the change has happened:
fireTableDataChanged();
|
|