Luis Miguel Serrano Luis Miguel Serrano - 8 months ago 144
Java Question

SWT Table Filters and Sorting

Is there any easy way to filter items in a SWT Table ? and to sort TableItems ?

I have not found any, and by using an internal data table to store the complete information (without filtered out items), I have greatly increased the complexity of my program and also made it much more inefficient due to all the issues that must be taken into account to keep both tables synchronized with each other...
I intend to be able to filter both by text, and by mathematical conditions for numeric fields.

I'd also like to know if there is any easy way to order items in a SWT Table, because the approach i have taken so far for ordering also makes use of an internal table which makes the code quite ugly in plenty of spots.

Mot Mot

Take a look at JFace.