• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

JavaFX How to Display Multiple Selected Items from ObservableList<String>  RSS feed

 
Ranch Hand
Posts: 131
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The requirement is to display a list of selected items from an ObservableList, but Label isn't doing the job. Only the last selected item is displayed.
Please review test code, it has undergone multiple variations, but cannot get it to display more than one selected item.
 
Marshal
Posts: 5988
156
Chrome Eclipse IDE Java Postgres Database Ubuntu VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm, it works for me.  Silly question: are you holding down the Ctrl key while you select?
 
AhFai Chan
Ranch Hand
Posts: 131
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Knute Snortum wrote:Hmm, it works for me.  Silly question: are you holding down the Ctrl key while you select?



OK, holding down the control bottom makes it work.
Will have to put that into tool tip for the real thing.
Thanks.
 
Forget Steve. Look at this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!