How can I select words clicking on them in JEditorPane?

From: Ahmet Aksoy (ahmetax_at_gmail.com)
Date: 03/26/05


Date: 26 Mar 2005 03:14:54 -0800

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



Relevant Pages

  • Re: Local pre-diabetic study
    ... : urbana wrote: ... :> I had to stop in at my Endo's office today and while I was waiting ... I don't think its a lousy subject selection at all. ...
    (alt.support.diabetes)
  • Re: ugvm Leaderboard Challenge -Next round
    ... ugvmHakk ...choose 1 (with actual levels/modes) ... straight away rather than waiting for him to time out. ... Be ready with a selection tomorrow, ...
    (uk.games.video.misc)
  • Re: ugvm Leaderboard Challenge -Next round
    ... ugvmHakk ...choose 1 (with actual levels/modes) ... straight away rather than waiting for him to time out. ... Be ready with a selection tomorrow, ...
    (uk.games.video.misc)
  • Re: [2.4 PATCH] bugfix: ARP respond on all devices
    ... [I've been waiting what seems like centuries for someone ... Do you know how source address selection works when the user tries to ... these various configurations to work ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)