View RSS Feed

Java Swing

Java Swing tutorials.

  1. Creating a Table Model

    by , 04-26-2012 at 09:45 PM
    A table model object is used by every table object for management of the actual data of the table. Interface TableModel shall be implemented by the table model object. If table model object is not provided by the programmer them DefaultTableModel instance is automatically created by the the JTable. This kind of relationship is given below:

    SimpleTableDemo uses the JTable constructor to create table model, along with code:
    Java Code:
    new AbstractTableModel() {