Article View: borland.public.jbuilder.java.swing
Article #9825JBuilder3, JList & Sorting
From: Joe Heuler
Date: Thu, 06 Jan 2000 00:00
Date: Thu, 06 Jan 2000 00:00
14 lines
1163 bytes
1163 bytes
Hello, Using JBuilder3 and swing components I have created a ListModel that is displayed with JList. Objects are added to the ListModel. Each object is composed of two strings and one icon(one string is for display purposes and the other string will not be displayed in the JList). I would like to be able to sort the objects by either string before displaying them in the JList. I am able to use the Arrays.sort in java.util.Arrays but I have only been successful with sorting strings(not strings in objects). Does anyone know of a way to sort objects according to an element of an object? Thanks in advance Joe Heuler
Technical Details
Message-ID:
<85325s$qhr30@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,77c74362b77ebaef,start X-Google-Attributes: gid111d45,public From: "Joe Heuler" <joeh@choruscall.com> Subject: JBuilder3, JList & Sorting Date: 2000/01/06 Message-ID: <85325s$qhr30@bornews.borland.com> X-Deja-AN: 569264229 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Chorus Call, Inc. X-MSMail-Priority: Normal Reply-To: "Joe Heuler" <joeh@choruscall.com> Newsgroups: borland.public.jbuilder.java.swing