Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8116800

Do CSS-Files really have to have a suffix of .css

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • fx2.0
    • javafx
    • None

      I'm not sure if this is done by intention but one can only load files into the CSS-Engine which have a suffix of .css. So this one:

      scene.getStylesheets().add(App.class.getResource("demo.fxcss").toExternalForm());

      fails and this one

      scene.getStylesheets().add(App.class.getResource("demo.css").toExternalForm());

      succeeds

            dgrieve David Grieve
            tschindl Tom Schindl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: