• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

ListView MultipleSelection in Eclipse Scene Builder not working ???

 
Ranch Hand
Posts: 271
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
QUESTION: How do I get ListView to display multiple selections when using Scene Builder in Eclipse??

I am using Scene Builder in Eclipse to help me implement MVC and running into problems with Scene Builder
Please see .jpg underneath all this for a visual...

Here is the Controller code, I have been trying out variations, hence the "comment-out" bits...


The code for Main()


The FXMLDocument
ListViewProblem.JPG
[Thumbnail for ListViewProblem.JPG]
ListView with multiple selection works well using vanilla JavaFX codes, but does not display the selected items when using Scene Builder.
InsideSceneBuilder.JPG
[Thumbnail for InsideSceneBuilder.JPG]
In Scene Builder, I clicked on the Java class
 
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you sure onEditStart is the action you want to listen to?  What happens if you change it to onMouseClicked?

Also, I don't know if this is related, but you are calling listViewItemSelected on the onDragDetected action of the main AchorPane.
 
AhFai Chan
Ranch Hand
Posts: 271
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ohhh
I had a few checked without filling out the methods in the Controller when I was testing.
I did very much want to edit the ListView items and upload back to the cloud later.
I am not going to work this weekend.
Thank-you.
 
When I was younger I felt like a man trapped inside a woman’s body. Then I was born. My twin is a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic