aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
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: 18669
    
    8

Isn't what you want more like this?



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

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: loop through values combo box