blob: 6c1b355caceaeb1bc4a3c3dd3b70240d2fe05bb8 [file] [log] [blame]
package org.eclipse.fx.xtext.sample.editor.text;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.TextArea;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
public class SampleTextArea extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
BorderPane p = new BorderPane();
TextArea t = new TextArea();
StringBuilder b = new StringBuilder();
b.append("This is a multiline text\n");
b.append("This is a multiline text\n");
b.append("This is a multiline text\n");
t.setText(b.toString());
p.setCenter(t);
primaryStage.setScene(new Scene(p));
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}