You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This release add a new class for convenient creation of input dialogs: GenericDialogFX. You can easily add controls to
he dialog then read their values after the dialog was closed:
// Create a dialogvaldialog=newGenericDialogFX(
title ="GenericDialogFX Demo",
header ="Fancy description can go here."
) {
// Add fields
addCheckbox("Check me out!", defaultValue =false)
addCheckbox("Check me too!", defaultValue =true)
}
// Show dialog to the user
dialog.showDialog()
// Read input provided by the userif (dialog.wasOKed) {
valselect1= dialog.nextBoolean()
valselect2= dialog.nextBoolean()
println(s"Selection 1: $select1")
println(s"Selection 2: $select2")
} else {
println("Dialog was cancelled.")
}
The scalafx-extras-demos subproject has a more elaborated example.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This release add a new class for convenient creation of input dialogs:
GenericDialogFX
. You can easily add controls tohe dialog then read their values after the dialog was closed:
The
scalafx-extras-demos
subproject has a more elaborated example.Enhancements:
To post questions please use Project Discussions or ScalaFX Users Group
Full Changelog: v.0.5.0...v.0.6.0
This discussion was created from the release ScalaFX-Extras v.0.6.0.
Beta Was this translation helpful? Give feedback.
All reactions