Results 1 to 2 of 2
Thread: Jcombobox ArrayList
- 12-12-2010, 03:57 PM #1
Member
- Join Date
- Dec 2010
- Posts
- 2
- Rep Power
- 0
-
I'm no pro at this, but one way is to write your own Combo Box Model. Just like the DefaultComboBoxModel, it should inherit from AbstractListModel and should implement all the interfaces that the Default model does. Then your ArrayList could serve as the data nucleus of the model. If you don't want to go through all this trouble, you could instead modify your ArrayList in parallel to changes made to a DefaultComboBoxModel by adding a ListDataListener to your model.
Similar Threads
-
how to add Arraylist filter for a jsp page showing results from a servlet-Arraylist
By alok_sharma in forum Java ServletReplies: 7Last Post: 11-22-2010, 02:26 PM -
A private static ArrayList hold an object and static getter ArrayList
By Louis in forum New To JavaReplies: 2Last Post: 11-16-2010, 06:51 PM -
Creating an ArrayList from an ArrayList
By Klahking in forum New To JavaReplies: 17Last Post: 09-09-2010, 04:34 PM -
Activate JComboBox 1 when object is selected in JComboBox 2...
By bahumbaba in forum AWT / SwingReplies: 2Last Post: 12-10-2009, 02:58 PM -
Java Project Trouble: Searching one ArrayList with another ArrayList
By BC2210 in forum New To JavaReplies: 2Last Post: 04-21-2008, 12:43 PM
Bookmarks