public class MessageStore.TableModel extends AbstractTableModel
AbstractTableModel
. frame = new javax.swing.JFrame(); frame.getContentPane().add(new javax.swing.JTable (myMessageStore.getTableModel()) ); frame.pack(); frame.setVisibility(true);Own specializations are inserted by ...
class myTableModel extends MessageStore.TableModel {...} myMessageStore.setTableModel(myMessageStore.new MyTableModel()) ;
listenerList
Constructor and Description |
---|
TableModel() |
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount() |
String |
getColumnName(int col) |
int |
getRowCount() |
Object |
getValueAt(int row,
int column)
Returns the message for all columns; -- the renderer of a particular column
must extract the info for that column.
|
boolean |
isCellEditable(int row,
int column) |
void |
notifyAdd(int pos) |
void |
notifySortingChanged() |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
public void notifyAdd(int pos)
public void notifySortingChanged()
public int getRowCount()
public int getColumnCount()
public String getColumnName(int col)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public boolean isCellEditable(int row, int column)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public Object getValueAt(int row, int column)
see also the complete user documentation .