I have the following problem in my ScalaFX Application. I have a Label in a VBox. Both have a onMouseClicked listener assigned, as can be seen in my example code. When clicking on the inside label, both handlers are executed. This is not the behavior I want to force. I only want the labels listener to be executed.
Example-Code
new VBox{
content add new Label {
text = "inside label"
onMouseClicked = (me : MouseEvent) => println("Execute just me!")
}
onMouseClicked = (me : MouseEvent) => println("Do not execute when label is clicked!")
}
Is there an easy way to stop the VBox handler from being executed when clicking the Label?