my code is follows:
first: i extends BaseTableModel for storing my data,
second: i simulate PetClinic sample ant make a ViewTest class by Extending AbstractView class,Code:public class MyTableModel extends BaseTableModel { }
now, i can show a table in the application.Code:public class ViewTest extends AbstractView { protected JComponent createControl() { ............................. MutableTableModel tableModel = new MyTableModel(); JTable jTable = TableUtils.createStandardSortableTable(tableModel); .............................. } }
but, what i want to know is how the listener mechanism of this TableModel is implemented, and whether or not should i use TableModleEvent and TableModleListener in the javax.swing.event Packege?
I hope that you can explain the listener mechanism of rich client in detail by using this table example and give a simple example.
thanks!


Reply With Quote