public void clear() {
   textArea.setText("");
 }