Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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: 19728

Isn't what you want more like this?

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

Have you checked out Aspose?
subject: loop through values combo box
It's not a secret anymore!