Skip to content

Instantly share code, notes, and snippets.

@skht777
Created May 15, 2018 08:09
Show Gist options
  • Select an option

  • Save skht777/45fc2f234e7793b318cf4a0c9aebf3b2 to your computer and use it in GitHub Desktop.

Select an option

Save skht777/45fc2f234e7793b318cf4a0c9aebf3b2 to your computer and use it in GitHub Desktop.
import scalafx.Includes._
import scalafx.scene.text.Text
import scalafx.event.ActionEvent
import scalafxml.core.macros.sfxml
@sfxml
class SampleController(private val actiontarget: Text) {
protected handleSubmitButtonAction(ActionEvent event): Unit = {
actiontarget.text = "Sign in button pressed"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment