line + visibleLines)));
line + visibleLines)); if(select) textArea.select(textArea.getMarkPosition(),caret); else textArea.setCaretPosition(caret);
		public void actionPerformed(ActionEvent evt)		{			JEditTextArea textArea = getTextArea(evt);			int firstLine = textArea.getFirstLine();			int visibleLines = textArea.getVisibleLines();			int line = textArea.getCaretLine();			if(firstLine + visibleLines + 1 >= textArea.getLineCount())			{				textArea.setCaretPosition(textArea.getLineStartOffset(					textArea.getLineCount() - 1));				return;			}			textArea.setFirstLine(firstLine + visibleLines);			textArea.setCaretPosition(textArea.getLineStartOffset(				Math.min(textArea.getLineCount() - 1,				line + visibleLines)));		}