public static void centerlizeCaret(JTextPane tp, JScrollPane scrollPane) {
		try {
			Point caretPosition = MathUtil.center(tp.modelToView(tp.getCaretPosition()));
//			Point caretPosition = tp.getCaret().getMagicCaretPosition();
//			Rectangle rect = scrollPane.getVisibleRect();
			JViewport viewport = scrollPane.getViewport();
			Rectangle rect = viewport.getViewRect();
//			viewport.set
			System.out.println("caretPosition=" + caretPosition + ", rect=" + rect);
		} catch (BadLocationException e) {
			throw new RuntimeException(e);
		}
	}