Cursor positioning in a JTextArea

Quick question; is it possible to get the cursor position in the JTextArea? (x/y position)For examle;ABC|DEFGHIJKLThe | (cursor) is in this example at 1:4
[196 byte] By [alienchilda] at [2007-11-26 19:58:14]
# 1
Try fiddling withgetCaretPosition()#
duckbilla at 2007-7-9 22:53:45 > top of Java-index,Desktop,Core GUI APIs...
# 2
Check out the methods in my class here: http://forum.java.sun.com/thread.jspa?forumID=57&threadID=607777
camickra at 2007-7-9 22:53:45 > top of Java-index,Desktop,Core GUI APIs...
# 3
awesome, I will try and implement it tomorrow @ work. Thanks so much!
alienchilda at 2007-7-9 22:53:46 > top of Java-index,Desktop,Core GUI APIs...
# 4
Your example application is a stroke of genious, worked perfectly!
alienchilda at 2007-7-9 22:53:46 > top of Java-index,Desktop,Core GUI APIs...