Created
March 12, 2013 14:54
-
-
Save tarrsalah/5143557 to your computer and use it in GitHub Desktop.
Change a button text when hovering
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
btn.textProperty().bind( | |
Bindings.when(new_btn.hoverProperty()) | |
.then(new SimpleStringProperty("Hello!")) | |
.otherwise(new SimpleStringProperty("New")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment