private int getLineY(String text, int lineNumber) {
		if (text.length() == 0) return 0;
		int pos = 0;
		try {
			for (int i = 1; i < lineNumber; i++) {
				int eol = text.indexOf(lineSeparator, pos);
				if (eol == -1) {
					Rectangle bounds = textPane.modelToView(pos);
					return bounds.y + bounds.height;
				}
				pos = eol + lineSeparator.length();
			}
			return textPane.modelToView(pos).y;
		} catch (Exception ex) {
			throw new ErrorException("Internal error: " + ex);
		}
	}