Wraps Application.Parameters class.
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 JFXApp { 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 } } } } }
Get the user agent stylesheet used by the whole application.
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.
The URL to the stylesheet as a String.
Set the user agent stylesheet used by the whole application.
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.
The URL to the stylesheet as a String.
(Since version 8.0.60-R10) Prefer Scala naming convention over Java, use ActiveApp
instead.
(Since version 8.0.60-R10) Prefer Scala naming convention over Java, use ActiveApp
instead.
(Since version 8.0.60-R10) Prefer Scala naming convention over Java, use AutoShow
instead.
(Since version 8.0.60-R10) Prefer Scala naming convention over Java, use AutoShow
instead.
(Since version 8.0.60-R10) Prefer Scala naming convention over Java, use Stage
instead.
(Since version 8.0.60-R10) Prefer Scala naming convention over Java, use Stage
instead.