textArea.setFirstLine(Math.max(0,line - textArea.getVisibleLines() / 2));
	public void actionPerformed(ActionEvent evt)	{		View view = getView(evt);		JEditTextArea textArea = view.getTextArea();		int line = textArea.getCaretLine();		int offset = textArea.offsetToX(textArea.getCaretLine(),			textArea.getCaretPosition() - textArea			.getLineStartOffset(textArea.getCaretLine()));		textArea.scrollTo(line,offset);	}