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

simplify code

parent 554260db
No related branches found
No related tags found
1 merge request!13Resolve "create a thought"
......@@ -12,12 +12,11 @@ public class Controller {
@FXML
private void handleSubmit() {
String tmp = textArea.getText();
Thought t = new Thought(tmp);
//create new thought, parameter from textArea
Thought t = new Thought(textArea.getText());
//get the thought manager and add the thought to the manager
ThoughtManager tm = ThoughtManager.getInstance();
tm.add(t);
}
......
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