de.factoryfx.javafx.css.CssUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javafxDataEditing Show documentation
Show all versions of javafxDataEditing Show documentation
factoryfx dependency injection framework
The newest version!
package de.factoryfx.javafx.css;
import javafx.scene.Parent;
import javafx.scene.Scene;
public class CssUtil {
public static void addToNode(Parent node ){
node.getStylesheets().add(CssUtil.class.getResource("/de/factoryfx/javafx/css/app.css").toExternalForm());
}
public static void addToScene(Scene scene ){
scene.getStylesheets().add(CssUtil.class.getResource("/de/factoryfx/javafx/css/app.css").toExternalForm());
}
public static String getURL(){
// Optional specificModule = ModuleLayer.boot().findModule("de.factoryfx.javafxDataEditing");
// try {
// specificModule.get().getResourceAsStream("de/factoryfx/javafx/css/app.css");
// } catch (IOException e) {
// throw new RuntimeException(e);
// }
// return "";
return CssUtil.class.getResource("/de/factoryfx/javafx/css/app.css").toExternalForm();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy