Meaningless Drivel is fun!
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 19747

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
It's not a secret anymore!