How can I select words clicking on them in JEditorPane?
From: Ahmet Aksoy (ahmetax_at_gmail.com)
Date: 03/26/05
- Next message: Michael Kragh Pedersen: "Focus on JFrame"
- Previous message: Ahmet Aksoy: "Re: How can I go to the first line of a JEditorPane programmatically?"
- Next in thread: hiwa: "Re: How can I select words clicking on them in JEditorPane?"
- Reply: hiwa: "Re: How can I select words clicking on them in JEditorPane?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Michael Kragh Pedersen: "Focus on JFrame"
- Previous message: Ahmet Aksoy: "Re: How can I go to the first line of a JEditorPane programmatically?"
- Next in thread: hiwa: "Re: How can I select words clicking on them in JEditorPane?"
- Reply: hiwa: "Re: How can I select words clicking on them in JEditorPane?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|