scalafx.stage
Wraps `javafx.stage` package.
Attributes
Members list
Type members
Classlikes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DirectoryChooser.type
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FileChooser.type
Provides support for standard platform file dialogs. These dialogs have look and feel of the platform UI components which is independent of JavaFX.
Provides support for standard platform file dialogs. These dialogs have look and feel of the platform UI components which is independent of JavaFX.
Example:
import scalafx.Includes._
import scalafx.stage.FileChooser
import scalafx.stage.FileChooser.ExtensionFilter
...
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);
}
Attributes
- Companion
- object
- Supertypes
Wrapper for javafx.stage.Modality
Wrapper for javafx.stage.Modality
Attributes
Wraps javafx.stage.Modality.
Attributes
- Companion
- object
- Supertypes
-
class PopupWindowclass Windowclass EventTargettrait SFXDelegate[Popup]class Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PopupWindow.type
Attributes
- Companion
- object
- Supertypes
-
class Windowclass EventTargettrait SFXDelegate[PopupWindow]class Objecttrait Matchableclass AnyShow all
- Known subtypes
Attributes
- Companion
- object
- Supertypes
The primary stage for your application has to be created by wrapping the JFXApp3.stage
object.
The primary stage for your application has to be created by wrapping the JFXApp3.stage
object.
stage = new JFXApp3.PrimaryStage { // your definitions }
Any further stage would be simply instantiated by the no-arg constructor.
Attributes
- Companion
- object
- Supertypes
-
class Windowclass EventTargettrait SFXDelegate[Stage]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class PrimaryStageclass PrimaryStage
Attributes
- Companion
- trait
- Supertypes
- Self type
-
StageIncludes.type
Contains implcit methods to convert from `javafx.stage` Classes/Traits to their ScalaFX counterparts.
Contains implcit methods to convert from `javafx.stage` Classes/Traits to their ScalaFX counterparts.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- class
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass AnyShow all
- Self type
-
StageStyle.type
Attributes
- Companion
- object
- Supertypes
-
trait SFXEnumDelegate[StageStyle]trait SFXDelegate[StageStyle]class Objecttrait Matchableclass Any
- Known subtypes
-
object Decorated.typeobject Transparent.typeobject Undecorated.typeobject Unified.typeobject Utility.type
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
class PopupWindowclass PopupControlclass ContextMenuclass Tooltipclass Popupclass Stageclass PrimaryStageclass PrimaryStageShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
WindowEvent.type
Attributes
- Companion
- object
- Supertypes