Skip to content
Snippets Groups Projects
Commit 74e41a6a authored by Herman Andersen Dyrkorn's avatar Herman Andersen Dyrkorn
Browse files

Merge branch '10-create-a-thought' into 'master'

Resolve "create a thought"

Closes #10

See merge request !13
parents 052a717d 6edcaa8e
No related branches found
No related tags found
1 merge request!13Resolve "create a thought"
......@@ -11,18 +11,13 @@ public class Controller {
@FXML
private void handleSubmit() {
System.out.println("Mamma sønn");
String tmp = "";
tmp = textArea.getText();
//create new thought, parameter from textArea
Thought t = new Thought(textArea.getText());
System.out.println(tmp);
//get the thought manager and add the thought to the manager
ThoughtManager tm = ThoughtManager.getInstance();
tm.add(t);
//Thought tmpThought = new Thought();
// Button was clicked, do something...
//outputTextArea.appendText("Button Action\n");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment