Glazed Lists

Table Sorting Comparison

Throughout the Java community, multiple similarly-purposed tools compete on merit. This is the case for J2EE application servers, widget toolkits and even JVMs. This comparison is similar in spirit. It examines the different free tools to create a sorted JTable.

Warning: This comparison has been compiled by Jesse Wilson, the lead developer of Glazed Lists. Although great effort has been made to present a fair comparison, Jesse is most familiar with Glazed Lists and mistakes do happen. Please contact Jesse if you find an error or would like to suggest a new tool or category.

Information
Category Glazed Lists TableSorter JDNC
Approach Transform java.util.Lists to sort and filter Simple and easy decorator for TableModel that adds sorting A feature-rich platform for binding data to Swing components
Website Glazed Lists The Java Tutorial: How To Use Tables JDesktop Network Components
License LGPL public domain LGPL
User Experience
Category Glazed Lists TableSorter JDNC
Sorting does not destroy selection Yes No Yes
Multiple comparators per column Yes No No
Multiple columns sort Yes Yes Yes
API
Category Glazed Lists TableSorter JDNC
Use any TableModel No Yes Yes
Performance
Category Glazed Lists TableSorter JDNC
Sorting (time on test machine for a test program of 1000 sorts) 65.5s 136.3s 117.2s
Model changes (time on test machine for a test program of 1000 row adds) 8.9s 71.4s 55.7s
Windows XP
Native Apps Glazed Lists TableSorter JDNC
Windows XP / native application Windows XP / Glazed Lists application Windows XP / TableSorter application Windows XP / JDNC application
Classic Windows
Native Apps Glazed Lists TableSorter JDNC
Windows / native application Windows / Glazed Lists application Windows / TableSorter application Windows / JDNC application
Mac OS X
Native Apps Glazed Lists TableSorter JDNC
Mac OS X / native application Mac OS X / Glazed Lists application Mac OS X / TableSorter application Mac OS X / JDNC application
Java 5.0 Metal

Glazed Lists TableSorter JDNC

Java 5.0 Metal / Glazed Lists application Java 5.0 Metal / TableSorter application Java 5.0 Metal / JDNC application
Java 1.4 Metal

Glazed Lists TableSorter JDNC

Java 1.4 Metal / Glazed Lists application Java 1.4 Metal / TableSorter application Java 1.4 Metal / JDNC application