Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaFX with Scenebuilder Error resolving onDragDetected='#setOnDragDetected'

 
Dennis Von Valkenburgh
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all
I have a gui with a Drag Drop ability.
I could not test the drag and drop yet because of this following error:
"Error resolving onDragDetected='#setOnDragDetected', either the event handler is not in the Namespace or there is an error in the script."

Here is my controller:



Here is the FXML:


What could the error be?
I cant seem to find anything. I already fixed an issue where my Method was named differently in the FXML and the Controller.
I fixed that but still I get the error.
 
Dennis Von Valkenburgh
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THere is an error as well in the FXML for ALL Drag and Drop Methods: "The controller 'Controller' has no event slot 'setOnDragDetected'"
 
Jan Daermann
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your fxml file, line11, change the address of the fx:controller address to "yourPackage.Controller" and see whether that takes care of it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic