Example usage for javafx.scene.layout Region maxWidthProperty

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

Introduction

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

Prototype

public final DoubleProperty maxWidthProperty() 

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