public final ObservableList<String> getStylesheets ()

Gets an observable list of string URLs linking to the stylesheets to use with this scene's contents.

The URL is a hierarchical URI of the form [scheme:][//authority][path]. If the URL does not have a [scheme:] component, the URL is considered to be the [path] component only. Any leading '/' character of the [path] is ignored and the [path] is treated as a path relative to the root of the application's classpath.


 package com.example.javafx.app;

 import javafx.application.Application;
 import javafx.scene.Group;
 import javafx.scene.Scene;
 import javafx.stage.Stage;

 public class MyApp extends Application {

      @Override public void start(Stage stage) {
         Scene scene = new Scene(new Group());
         scene.getStylesheets().add("/com/example/javafx/app/mystyles.css");
         stage.setScene(scene);
         stage.show();
     }

     public static void main(String[] args) {
         launch(args);
     }
 }
 
For additional information about using CSS with the scene graph, see the CSS Reference Guide.

Returns:  the list of stylesheets to use with this scene