Thom,

Sorting is a generic operation separate from Swing.  Check out the 
collections API 
(<http://java.sun.com/j2se/1.3/docs/guide/collections/reference.html>).  If 
you want your combo box to stay sorted as you add/remove items, you need to 
create a custom combobox model that keeps its data in a sorted collection.

Dmitry

At 11:39 AM 3/15/2001, Thom Burnett wrote:
>Does the JComboBox provide any direct method for sorting the items in it.
>In my case, I simply want to alphabetize the list but this seems like 
>something that Swing may already provide.
>--
>Thom Burnett

_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to