-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
1,506 additions
and
153 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,4 @@ project/target | |
.externalToolBuilders/ | ||
/_local_/ | ||
/.bsp/ | ||
.DS_Store |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version = 3.2.1 | ||
version = 3.5.8 | ||
|
||
runner.dialect = scala3 | ||
fileOverride { | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
### ScalaFX-Extras Release v.0.6.0 | ||
|
||
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 | ||
|
||
```scala | ||
// Create a dialog | ||
val dialog = | ||
new GenericDialogFX( | ||
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 user | ||
if (dialog.wasOKed) { | ||
val select1 = dialog.nextBoolean() | ||
val select2 = 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. | ||
|
||
Enhancements: | ||
|
||
* Support creation of custom dialogs, like ImageJ's GenericDialog #16 | ||
* Let any standard dialog be displayed with a one-liner #17 | ||
|
||
To post questions please use [Project Discussions][Discussions] or [ScalaFX Users Group][scalafx-users] | ||
|
||
[Discussions]: https://github.com/scalafx/scalafx-extras/discussions | ||
|
||
[scalafx-users]: https://groups.google.com/forum/#!forum/scalafx-users | ||
|
||
[Issue #16]: https://github.com/scalafx/scalafx-extras/issues/16 | ||
|
||
[Issue #17]: https://github.com/scalafx/scalafx-extras/issues/17 | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// [https://github.com/xerial/sbt-sonatype] | ||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.10") | ||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.13") | ||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.1.1") |
Oops, something went wrong.