Last active
January 13, 2022 07:09
-
-
Save PragmaticCoding/3a2e8ae215eaee024386a9867a5e67f1 to your computer and use it in GitHub Desktop.
JavaFX Property Bean
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
private final StringProperty firstName = new SimpleStringProperty("Alloysius"); | |
public String getFirstName() { | |
return firstName.get(); | |
} | |
public StringProperty firstNameProperty() { | |
return firstName; | |
} | |
public void setFirstName(String firstName) { | |
this.firstName.set(firstName); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment