List of usage examples for javafx.scene.layout FlowPane setPrefHeight
public final void setPrefHeight(double value)
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; }