public void TextVal_set(String v) { txt_box.TextVal_set(v); txt_box.setSelectionStart(0); txt_box.setSelectionEnd(0); // else selects whole text and scrolls to end of selection }