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

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top