TableModels

Top  Previous  Next

 

In JTable's framework, a TableModel contains the data of the table. JTable interrogates this data model so that it can paint itself accordingly. By employing the same mechanism and by extending the TableModel interface, we managed to provide effects, such as sorting and filtering, without the requirement of a special JTable subclass.