File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

loop through values combo box

Roger Swillens

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

Joined: Oct 14, 2005
Posts: 19847

Isn't what you want more like this?

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

I agree. Here's the link:
subject: loop through values combo box
jQuery in Action, 3rd edition