Hi,
I have a JEditorPane (or a similar class).
It is readonly. I want to select the words when I clicked on them. Or,
after waiting for some time on a word, it will be selected
automatically.
Here "selection" means, I can obtain the "selected" word. Only
coloring it is not very important now.
With using MouseClick or MouseMotion Listeners, I can find the
coordinates of the cursor. If I can find the word with the similar
coordinates, my problem will be solved.
What can I do?
Thanks a lot.
Ahmet Aksoy
hiwa - 27 Mar 2005 00:09 GMT
>Hi,
>I have a JEditorPane (or a similar class).
[quoted text clipped - 10 lines]
>Ahmet Aksoy
>
Try experimenting with viewToModel() method.
Ahmet Aksoy - 27 Mar 2005 18:20 GMT
It worked. Thanks.
> >Hi,
> >I have a JEditorPane (or a similar class).
[quoted text clipped - 12 lines]
> >
> Try experimenting with viewToModel() method.