How can I get the exact (x,y) Point location of the caret?
(I need it to draw around the caret with awt)
I tried this,
CaretModel caret = editor.getCaretModel();
Point point = editor.logicalPositionToXY (caret.getLogicalPosition() );
but it doesn't work :
- horizontal offset (always)
- vertical offset (when you use the scrollbar)