Example usage for javafx.scene.control ButtonBase setPrefSize

List of usage examples for javafx.scene.control ButtonBase setPrefSize

Introduction

In this page you can find the example usage for javafx.scene.control ButtonBase setPrefSize.

Prototype

public void setPrefSize(double prefWidth, double prefHeight) 

Source Link

Document

Convenience method for overriding the region's computed preferred width and height.

Usage

From source file:org.sleuthkit.autopsy.timeline.ui.detailview.EventNodeBase.java

static void configureActionButton(ButtonBase b) {
    b.setMinSize(16, 16);
    b.setMaxSize(16, 16);
    b.setPrefSize(16, 16);
}