| Package | Description | 
|---|---|
| javax.swing | Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms. | 
| javax.swing.event | Provides for events fired by Swing components. | 
| javax.swing.table | Provides classes and interfaces for dealing with
 javax.swing.JTable. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | DefaultRowSorter<M,I>An implementation of  RowSorterthat provides sorting and
 filtering around a grid-based data model. | 
| Modifier and Type | Method and Description | 
|---|---|
| RowSorter<? extends TableModel> | JTable. getRowSorter()Returns the object responsible for sorting. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | JTable. setRowSorter(RowSorter<? extends TableModel> sorter)Sets the  RowSorter. | 
| Modifier and Type | Method and Description | 
|---|---|
| RowSorter | RowSorterEvent. getSource()Returns the source of the event as a  RowSorter. | 
| Constructor and Description | 
|---|
| RowSorterEvent(RowSorter source)Creates a  RowSorterEventof typeSORT_ORDER_CHANGED. | 
| RowSorterEvent(RowSorter source,
              RowSorterEvent.Type type,
              int[] previousRowIndexToModel)Creates a  RowSorterEvent. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | TableRowSorter<M extends TableModel>An implementation of  RowSorterthat provides sorting
 and filtering using aTableModel. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2013, Oracle and/or its affiliates.  All rights reserved.