示例#1
0
 // Replace part of the text in the text component.
 private String replaceConsoleText(Object aContent, int aFrom, int aTo) {
   final String aContentRepr = aContent.toString();
   text.select(aFrom, aTo);
   text.replaceSelection(aContentRepr);
   return aContentRepr;
 }
示例#2
0
 // Append text to the end of the text already present in the
 // text component.
 private void appendConsoleText(String aContent) {
   final int lTxtLen = textLength();
   text.select(lTxtLen, lTxtLen);
   text.replaceSelection(aContent);
 }