title: Get XY position from caret position in JTextArea
body: <p>I'm trying to make an editor which have ability show pop up (JPopupMenu) each time users type any letter. Maybe, to imagine how my editor works its like any compiler, such as NetBeans when we type dot, the function appear.</p>
  
  <p>I have learned JPopupMenu from <a href="http://www.cs.cf.ac.uk/Dave/HCI/HCI_Handout_CALLER/node82.html" rel="nofollow">here</a>. JPopupMenu needs XY position. My idea is to get XY position from JTextArea's caret position. My question is: Is there possible to get XY position from caret position (text cursor) in JTextArea or other JTextComponent? Or maybe is there any solution better to this case?</p>
  
  <p>Thx before. Sorry, not good in english. :D</p>