package view;

import javafx.scene.control.TextArea;

public class InputView extends TextArea {
	private static final double width = 1000;
	private static final double height = 500;
	
	private String myText;

	public InputView() {
		setPrefWidth(width);
		setPrefHeight(height);
		setMaxSize(width, height);
	}

	public void addAndShowText(String text){
		myText+=text+"\n";
		setText(myText);

	}

}

@@ -19,37 +19,198 @@
 ort 
-javafx.scene.control.TextArea
+parser.Tokenizer;%0Aimport javafx.event.ActionEvent;%0Aimport javafx.event.EventHandler;%0Aimport javafx.scene.control.Button;%0Aimport javafx.scene.control.TextArea;%0Aimport javafx.scene.layout.Pane
 ;%0A%0Ap
@@ -239,24 +239,20 @@
 extends 
-TextArea
+Pane
  %7B%0A%09priv
@@ -275,21 +275,26 @@
  double 
-width
+VIEW_WIDTH
  = 1000;
@@ -323,22 +323,27 @@
  double 
-height
+VIEW_HEIGHT
  = 500;%0A
@@ -357,21 +357,127 @@
 ate 
-String myText
+TextArea myInput;%0A%09private Button mySubmitButton;%0A%09private Tokenizer myToken;%0A%09private String myText=%22Let's gooooo%5CnXD%22
 ;%0A%0A%09
@@ -497,16 +497,18 @@
 iew() %7B%0A
+%09%0A
 %09%09setPre
@@ -514,21 +514,26 @@
 efWidth(
-width
+VIEW_WIDTH
 );%0A%09%09set
@@ -547,43 +547,814 @@
 ght(
-height);%0A%09%09setMaxSize(width, height
+VIEW_HEIGHT);%0A%09%09setMaxSize(VIEW_WIDTH, VIEW_HEIGHT);%0A%09%09update();%0A%09%09this.getChildren().add(myInput);%0A%09%09this.getChildren().add(mySubmitButton);%0A%09%7D%0A%0A%09private void update() %7B%0A%09%09myInput=new TextArea();%0A%09%09myInput.setPrefWidth(VIEW_WIDTH-70);%0A%09%09myInput.setPrefHeight(VIEW_HEIGHT);%0A%09%09myInput.setMaxSize(VIEW_WIDTH-70, VIEW_HEIGHT);%0A%09%09%0A%09%09mySubmitButton=new Button();%0A%09%09mySubmitButton.setText(%22Submit%22);%0A%09%09mySubmitButton.setLayoutX(930);%0A%09%09mySubmitButton.setLayoutY(0);%0A%09%09mySubmitButton.setMinSize(70, 70);%0A%09%09mySubmitButton.setOnAction(new EventHandler%3CActionEvent%3E()%7B%0A%09%09%09// give the string to the back end parser%0A%09%09%09@Override%0A%09%09%09public void handle(ActionEvent event) %7B%0A%09%09%09%09myToken=new Tokenizer();%0A%09%09%09%09myToken.tokenize(myInput.getText());%0A%09%09%09%09System.out.println(myInput.getText());%0A%09%09%09%09myInput.clear();%0A%09%09%09%7D%0A%09%09%09%0A%09%09%7D
 );%0A%09
@@ -1421,16 +1421,24 @@
 %22%5Cn%22;%0A%09%09
+myInput.
 setText(

add in a button in input area and click the button to give the input to the tokenizer. Test by output on sceen