What is "rowsorter"

The main function of Rowsorter is to provide a mapping between two coordinate systems: that of the visualization (for example, a ) and the underlying data source, typically a model.

The concrete implementations of RowSorter need to reference a model as or ListModel. The display classes, such as Jtable and Jlist, shall also have a reference to the.

To avoid ordering dependencies, implementations RowSorter should not install a Listeners in the template. Instead, the view class will call RowSorter when the template is changed. For example, if a line is updated in a TableModel, to JTable invokes the method rowsUpdated. When the template is changed, the display can call in any of the following methods: [modelStructureChanged][6], allRowsChanged, rowsInserted, rowsDeleted and rowsUpdated.

Other links to reference:

Using Rowsorter to Sort a Jtable : Jtable Sort Filter(example of implemetation)

Sorting and Filtering Jtable(Documentation)

Tablesortdemo(Oracle)