diff --git a/src/sample/Controller.java b/src/sample/Controller.java index b37db9ad69a0f89fd99270fe29a1d9dbdb47fbd0..e95e47fceca463ba37d007d41b9e6ad63e92a956 100644 --- a/src/sample/Controller.java +++ b/src/sample/Controller.java @@ -15,10 +15,15 @@ public class Controller { //create new thought, parameter from textArea Thought t = new Thought(textArea.getText()); + //clear textArea + textArea.clear(); + + //get the thought manager and add the thought to the manager ThoughtManager tm = ThoughtManager.getInstance(); tm.add(t); tm.displayList(); + } }