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

clearing textarea after pressed button

parent 91dd77c9
No related branches found
No related tags found
No related merge requests found
...@@ -15,10 +15,15 @@ public class Controller { ...@@ -15,10 +15,15 @@ public class Controller {
//create new thought, parameter from textArea //create new thought, parameter from textArea
Thought t = new Thought(textArea.getText()); Thought t = new Thought(textArea.getText());
//clear textArea
textArea.clear();
//get the thought manager and add the thought to the manager //get the thought manager and add the thought to the manager
ThoughtManager tm = ThoughtManager.getInstance(); ThoughtManager tm = ThoughtManager.getInstance();
tm.add(t); tm.add(t);
tm.displayList(); tm.displayList();
} }
} }
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