Creating a Sorted JList Component

J

John O'Conner

Hi all,

A new article offers an option for creating sorted JLists using the
decorator design pattern. You'll see something similar to this in JTable
in the upcoming Mustang release, but JList still has no specific, core
support for sorted lists. You have to do this yourself, and this article
and demo might help.

I've written a short demo that shows how you might create sorted lists
with minimal effect on your current ListModel implementions. To check it
out, see the following:
http://java.sun.com/developer/technicalArticles/J2SE/Desktop/sorted_jlist/

Regards,
John O'Conner
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top