I am trying to update a list in with the Swing Component, JComboBox. How do I add an entire list w/o re-allocating memory to a new JComboBox or w/o iterating through a list and adding an item line by line?
            Asked
            
        
        
            Active
            
        
            Viewed 792 times
        
    1 Answers
0
            
            
        Have you tried this one:
List list = new ArrayList();
JComboBox box = new JComboBox(list.toArray()); 
The following links could be helpful:
        Naveed Kamran
        
- 453
 - 1
 - 4
 - 16