Example usage for javafx.scene.control ScrollBar widthProperty

List of usage examples for javafx.scene.control ScrollBar widthProperty

Introduction

In this page you can find the example usage for javafx.scene.control ScrollBar widthProperty.

Prototype

public final ReadOnlyDoubleProperty widthProperty() 

Source Link

Usage

From source file:eu.over9000.skadi.ui.MainWindow.java

private void bindColumnWidths() {
    final ScrollBar tsb = JavaFXUtil.getVerticalScrollbar(this.table);
    final ReadOnlyDoubleProperty sbw = tsb.widthProperty();
    final DoubleBinding tcw = this.table.widthProperty().subtract(sbw);

    this.liveCol.prefWidthProperty().bind(tcw.multiply(0.05));
    this.nameCol.prefWidthProperty().bind(tcw.multiply(0.15));
    this.titleCol.prefWidthProperty().bind(tcw.multiply(0.4));
    this.gameCol.prefWidthProperty().bind(tcw.multiply(0.2));
    this.viewerCol.prefWidthProperty().bind(tcw.multiply(0.075));
    this.uptimeCol.prefWidthProperty().bind(tcw.multiply(0.125));
}