List of usage examples for javafx.scene Parent getStylesheets
public final ObservableList<String> getStylesheets()
From source file:com.ucu.seguridad.views.AbstractFxmlView.java
void addCSSIfAvailable(Parent parent) { URL uri = getClass().getResource(getStyleSheetName()); if (uri == null) { return;//from ww w . ja v a 2 s .c om } String uriToCss = uri.toExternalForm(); parent.getStylesheets().add(uriToCss); }