Example usage for javafx.scene.layout FlowPane setPrefHeight

List of usage examples for javafx.scene.layout FlowPane setPrefHeight

Introduction

In this page you can find the example usage for javafx.scene.layout FlowPane setPrefHeight.

Prototype

public final void setPrefHeight(double value) 

Source Link

Usage

From source file:Main.java

private FlowPane createTopBanner() {
    FlowPane topBanner = new FlowPane();
    topBanner.setPrefHeight(40);

    Font serif = Font.font("Dialog", 30);

    Text contactText = new Text("Contacts");
    contactText.setFill(Color.BLACK);
    contactText.setFont(serif);/* w ww . ja v a 2s.c o m*/

    topBanner.getChildren().addAll(contactText);

    return topBanner;
}