Skip to content

Instantly share code, notes, and snippets.

@GeePawHill
Last active August 20, 2020 21:12
Show Gist options
  • Select an option

  • Save GeePawHill/479227510827cd0fde09ffad4fdaa1a7 to your computer and use it in GitHub Desktop.

Select an option

Save GeePawHill/479227510827cd0fde09ffad4fdaa1a7 to your computer and use it in GitHub Desktop.
class ... : View() {
val rollProperty = SimpleStringProperty("My Dynamic String") // This doesn't have to be in the View class, it could be anywhere, like in the Model.
// But it can *not* be a String.
root = hbox {
label(rollProperty)
}
fun changeString(newValue:String)
{
rollProperty.set(newValue)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment