import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.*; import javafx.scene.layout.*; import javafx.stage.Stage; public class RT38448 extends Application { @Override public void start(Stage stage) throws Exception { TextArea textArea = new TextArea("Line 1\n" + "Line 2\n" + "Line 3"); stage.setScene(new Scene(new StackPane(textArea), 200, 200)); stage.show(); } }