if (text.startsWith("password:"))
text = text.substring(9);
new FireableMouseClickEvent(getTextComponent()).fire(1);
swingWait();
selectAllText();
FireableKeyEvent keyEvent = new FireableKeyEvent(getTextComponent(), 0);
if (text.length() > 0) {
keyEvent.fire(text);
} else {
keyEvent.fire(KeyEvent.VK_DELETE, KeyEvent.CHAR_UNDEFINED);
}
if (!getTextComponent().getText().equals(text)) {
// Needed for non-editable fields and fields that do not
// allow keyevents
swingWait();