JFXApp3

scalafx.application.JFXApp3
See theJFXApp3 companion trait
object JFXApp3

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
JFXApp3.type

Members list

Type members

Classlikes

abstract class Parameters extends SFXDelegate[Parameters]

Wraps Application.Parameters class.

Wraps Application.Parameters class.

Attributes

Companion
object
Supertypes
trait SFXDelegate[Parameters]
class Object
trait Matchable
class Any
object Parameters

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Parameters.type
class PrimaryStage extends Stage

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
           }
         }
       }
     }
    }
 }

Attributes

Supertypes
class Stage
class Window
class EventTarget
trait SFXDelegate[Stage]
class Object
trait Matchable
class Any
Show all

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.

Attributes

Returns

The URL to the stylesheet as a String. May return null.

See also

userAgentStylesheetOption

Optionally return 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 None means the platform default stylesheet is being used.

Optionally return 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 None means the platform default stylesheet is being used.

NOTE: This method must be called on the JavaFX Application Thread.

Attributes

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 parameters

url

The URL to the stylesheet as a String.

Attributes

Concrete fields

var Stage: Stage