• Post Reply Bookmark Topic Watch Topic
  • New Topic

loop through values combo box

 
Roger Swillens
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Sheriff
Posts: 21965
36
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Isn't what you want more like this?



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

 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!