Example usage for javafx.scene.layout Region prefWidthProperty

List of usage examples for javafx.scene.layout Region prefWidthProperty

Introduction

In this page you can find the example usage for javafx.scene.layout Region prefWidthProperty.

Prototype

public final DoubleProperty prefWidthProperty() 

Source Link

Usage

From source file:mesclasses.view.TimetableController.java

private void bindWidth(Region node, Pane parent, int divider) {
    node.minWidthProperty().bind(parent.widthProperty().divide(divider));
    node.prefWidthProperty().bind(parent.widthProperty().divide(divider));
    node.maxWidthProperty().bind(parent.widthProperty().divide(divider));
}