package sample;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.TextArea;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;

public class Main extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception {
        AnchorPane root = new AnchorPane();
        TextArea ta = new TextArea();
        root.getChildren().add(ta);
        AnchorPane.setLeftAnchor(ta, 5.0);
        AnchorPane.setRightAnchor(ta, 5.0);
        AnchorPane.setTopAnchor(ta, 5.0);
        AnchorPane.setBottomAnchor(ta, 5.0);
        ta.setStyle("-fx-font-size:18; -fx-font-family: Arial;");
        ta.setWrapText(true);

        primaryStage.setScene(new Scene(root, 100, 50));
        primaryStage.show();
    }


    public static void main(String[] args) {
        launch(args);
    }
}
