Exemplo n.º 1
0
  /**
   * Inserts the specified text at the specified location.
   *
   * @param text The text to insert.
   * @param pos The insert position.
   */
  public void insert(String text, int pos) {
    TextAreaPeer tap = (TextAreaPeer) getPeer();
    if (tap == null) return;

    tap.insert(text, pos);
  }
Exemplo n.º 2
0
  /**
   * 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());
  }