[CSS] applet cannot load css file relative to classpath

XMLWordPrintable

    • Type: Bug
    • Resolution: Withdrawn
    • Priority: P3
    • 8u40
    • Affects Version/s: 8u40
    • Component/s: javafx
    • None

      Run this in a browser and the console spits out 'Resource "/fxtest/test.css" not found' even though fxtest/test.css is in the jar.

          @Override public void start(Stage stage) {

              final Button button = new Button("Button");

              Scene scene = new Scene(new StackPane(button), 200, 200);
              scene.getStylesheets().add("/fxtest/test.css");
              stage.setScene(scene);
              stage.show();

          }

      It appears that the calls to StyleManager method getURL need to be wrapped in a doPriv

            Assignee:
            David Grieve
            Reporter:
            David Grieve
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: