Example usage for javafx.scene.layout GridPane getStyleClass

List of usage examples for javafx.scene.layout GridPane getStyleClass

Introduction

In this page you can find the example usage for javafx.scene.layout GridPane getStyleClass.

Prototype

@Override
    public final ObservableList<String> getStyleClass() 

Source Link

Usage

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;
}