/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package tesseractutil; import javafx.application.Application; import javafx.builders.TextBoxBuilder; import javafx.builders.VBoxBuilder; import javafx.scene.Scene; import javafx.scene.layout.VBox; import javafx.scene.text.Font; import javafx.stage.Stage; /** * * @author Alex */ public class TextBoxTest extends Application{ @Override public void start(Stage primaryStage) throws Exception { VBox box = new VBoxBuilder() .children( new TextBoxBuilder().build(), new TextBoxBuilder().font(Font.font("Courrier", 18.)).build()) .build(); Scene scene = new Scene(box, 300, 200); primaryStage.setScene(scene); primaryStage.setVisible(true); } public static void main(String[] args) { launch(args); } }