how to get top right (x, y) position of the caret

From: Kevin (slimit91_at_hotmail.com)
Date: 02/28/04


Date: Sat, 28 Feb 2004 12:27:16 -0600

Hi,

I am using JEditorPanel. I want to get the x, y position of caret as
follow:

some text |

          ^ (this is the current caret, I want to the know
              the top right (x,y) of this caret)

Thanks
- Kevin