GeeCON Prague 2014*
The moose likes JavaFX and the fly likes loop through values combo box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JavaFX
Bookmark "loop through values combo box" Watch "loop through values combo box" New topic
Author

loop through values combo box

Roger Swillens
Greenhorn

Joined: May 05, 2014
Posts: 7


In another class i get the ComboBox and i want to loop through the items.
I want to get the ArrayList but whit cb.getItems i get a ObservableList
wat i want
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

Isn't what you want more like this?



You can make that work by declaring the type of the ComboBox:

 
GeeCON Prague 2014
 
subject: loop through values combo box