Module java.desktop

Interface TableModel

All Known Implementing Classes:
AbstractTableModel, DefaultTableModel

public interface TableModel
The TableModel interface specifies the methods the JTable will use to interrogate a tabular data model.

The JTable can be set up to display any data model which implements the TableModel interface with a couple of lines of code:

      TableModel myData = new MyTableModel();
      JTable table = new JTable(myData);
  

For further documentation, see Creating a Table Model in The Java Tutorial.

See Also: