import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.TextField; import javafx.stage.Stage; /** * * @author Stas */ public class TextSpace extends Application { @Override public void start(Stage stage) throws Exception { TextField txtField = new TextField(); stage.setScene(new Scene(txtField, 300, 300)); stage.show(); } public static void main(String[] args) { launch(args); } }