- Companion
- class
Type members
Classlikes
Simple helper class for construction of primary application stages.
Simple helper class for construction of primary application stages.
The primary stage has to wrap an instance of a JavaFX primary stage created by JavaFX when application is initialized.
object SimpleScalaFXApp extends JFXApp3 {
override def start() : Unit = {
stage = new PrimaryStage {
title = "Simple ScalaFX App"
scene = new Scene {
root = new StackPane {
padding = Insets(20)
content = new Rectangle {
width = 200
height = 200
fill = Color.DEEPSKYBLUE
}
}
}
}
}
}
Value members
Concrete methods
Get the user agent stylesheet used by the whole application. This is used to provide default styling for all ui controls and other nodes. A value of null means the platform default stylesheet is being used.
Get the user agent stylesheet used by the whole application. This is used to provide default styling for all ui controls and other nodes. A value of null means the platform default stylesheet is being used.
NOTE: This method must be called on the JavaFX Application Thread.
- Returns
The URL to the stylesheet as a String.
Set the user agent stylesheet used by the whole application. This is used to provide default styling for all ui controls and other nodes. Each release of JavaFX may have a new default value for this so if you need to guarantee consistency you will need to call this method and choose what default you would like for your application. A value of null will restore the platform default stylesheet. This property can also be set on the command line with -Djavafx.userAgentStylesheetUrl=[URL] Setting it on the command line overrides anything set using this method in code.
Set the user agent stylesheet used by the whole application. This is used to provide default styling for all ui controls and other nodes. Each release of JavaFX may have a new default value for this so if you need to guarantee consistency you will need to call this method and choose what default you would like for your application. A value of null will restore the platform default stylesheet. This property can also be set on the command line with -Djavafx.userAgentStylesheetUrl=[URL] Setting it on the command line overrides anything set using this method in code.
NOTE: This method must be called on the JavaFX Application Thread.
- Value Params
- url
The URL to the stylesheet as a String.