Provides support for standard platform file dialogs.
Provides support for standard platform file dialogs. These dialogs have look and feel of the platform UI components which is independent of JavaFX.
Example:
val fileChooser = new FileChooser { title = "Open Resource File" extensionFilters ++= Seq( new ExtensionFilter("Text Files", "*.txt"), new ExtensionFilter("Image Files", Seq("*.png", "*.jpg", "*.gif")), new ExtensionFilter("Audio Files", Seq("*.wav", "*.mp3", "*.aac")), new ExtensionFilter("All Files", "*.*") ) } val selectedFile = fileChooser.showOpenDialog(stage) if (selectedFile != null) { stage.display(selectedFile); }
Wraps javafx.stage.Modality.
The primary stage for your application has to be created by wrapping the JFXApp.STAGE
object.
The primary stage for your application has to be created by wrapping the JFXApp.STAGE
object.
stage = new JFXApp.PrimaryStage { // your definitions }Any further stage would be simply instantiated by the no-arg constructor.
Contains implcit methods to convert from
javafx.stage
Classes/Traits to their ScalaFX counterparts.
Wraps http://docs.oracle.com/javase/8/javafx/api/javafx/stage/StageStyle.html
Wrapper for javafx.stage.Modality
Wraps
javafx.stage
package.