setText(getText() + toAppend);
try { getDocument().insertString(getText().length(), toAppend, null); } catch (BadLocationException exception) {  throw new RuntimeException("Unexpected exception occurred.", exception); }
  public void append(String toAppend)  {    setText(getText() + toAppend);  }