setCaretPosition(getString().length());
	void setFocus(boolean hasFocus) 	{		super.setFocus(hasFocus);		if (hasFocus) {			// register input listener			InputMethod inputMethod = DeviceFactory.getDevice().getInputMethod();			inputMethod.setInputMethodListener(inputMethodListener);			inputMethod.setConstraints(getConstraints());			inputMethod.setText(getString());			inputMethod.setMaxSize(getMaxSize());			setCaretPosition(getString().length());			setCaretVisible(true);		} else {			// unregister input listener			DeviceFactory.getDevice().getInputMethod().removeInputMethodListener(inputMethodListener);		}	}