Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / March 2005

Tip: Looking for answers? Try searching our database.

How can I select words clicking on them in JEditorPane?

Thread view: 
Ahmet Aksoy - 26 Mar 2005 12:14 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.