StringComponent tmp = tf.stringComponent; if (tmp.getCharPositionY(position) < viewPortY) { viewPortY = tmp.getCharPositionY(position); } else if (tmp.getCharPositionY(position) + tmp.getCharHeight() > viewPortY + viewPortHeight - 6) { viewPortY = tmp.getCharPositionY(position) + tmp.getCharHeight() - (viewPortHeight - 6); }
	void setCaretPosition(int position)	{		tf.setCaretPosition(position);	}