List of usage examples for javafx.scene.layout GridPane getStyleClass
@Override public final ObservableList<String> getStyleClass()
From source file:org.jacp.demo.components.ContactChartViewComponent.java
private GridPane createRoot() { final GridPane myRoot = new GridPane(); myRoot.getStyleClass().addAll("dark", "bar-chart-root"); myRoot.setAlignment(Pos.CENTER);/* ww w . j ava 2 s.c o m*/ GridPane.setHgrow(myRoot, Priority.ALWAYS); GridPane.setVgrow(myRoot, Priority.ALWAYS); return myRoot; }