Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

javafx get actionEvent id

// that goes to the place where you create your buttons
buttonDone.setId("done");

...

// that goes inside the callback method
String id = ((Node) event.getSource()).getId()

switch(id) {
    case "done":
        // your code for "buttonDone"
        break;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javafx #actionEvent #id
ADD COMMENT
Topic
Name
1+1 =