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
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