/** * Build a local image with its local path. * * @param ss the local image params * @return the JavaFX image object */ private URL buildStyleSheetUrl(final StyleSheet ss) { final StringBuilder sb = new StringBuilder(); sb.append(JRebirthParameters.STYLE_FOLDER.get()).append(Resources.PATH_SEP); if (!ss.path().isEmpty()) { sb.append(ss.path()).append(Resources.PATH_SEP); } sb.append(ss.name()); if (!ss.name().endsWith(CSS_EXT)) { sb.append(CSS_EXT); } return buildUrl(sb.toString()); }