import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.TextArea; import javafx.stage.Stage; /** * * @author Alexander Kouznetsov */ public class SpaceBarInTextArea extends Application { public static void main(String[] args) { launch(args); } @Override public void start(Stage stage) throws Exception { Scene scene = new Scene(new TextArea()); stage.setScene(scene); stage.setVisible(true); } }