/** * Appends the specified text to the end of the current text. * * @param text The text to append. */ public void append(String str) { TextAreaPeer tap = (TextAreaPeer) getPeer(); if (tap == null) return; tap.insert(str, tap.getText().length()); }