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.
url | The URL to the stylesheet as a String. |
Diagram: Application