Coordinate of DocumetEvent

If I have a DocumentEvent,how can I know the coordinates of the poin it has taken origin?
[103 byte] By [Mich24a] at [2007-11-26 13:10:29]
# 1
the DocumentEvent tells you the offset ot the change. If you know the JTextComponent of the Document then you can use:textComponent.modelToView(...);
camickra at 2007-7-7 17:24:43 > top of Java-index,Desktop,Core GUI APIs...
# 2
I have a TextArea and A Document...
Mich24a at 2007-7-7 17:24:43 > top of Java-index,Desktop,Core GUI APIs...
# 3
> I have a TextArea and A Document... No you don't. You have a JTextArea and JTextArea extends JTextComponent.
camickra at 2007-7-7 17:24:43 > top of Java-index,Desktop,Core GUI APIs...
# 4
unfortunately not. I use my own version on a TextArea and this class, despite the name, doesn't extends JTextArea or JTextComponent. It extends JComponent and implements Scrollable, TabExpander...But thx anyway for the suggestion...
Mich24a at 2007-7-7 17:24:43 > top of Java-index,Desktop,Core GUI APIs...