getCssPath

static String getCssPath(String name)

Gets a string path to a css file to be used with javafx. You can directly use the result of this to add a stylesheet. Ex. {@code scene.getStylesheets().add(Resources.getCssPath("my-resource.css")) } Note the implementation of this copies to a separate temporary file and returns the url due to the way tribot resource loading currently works.

Return

the css file resource path

Parameters

name

the resource name