Thread
:
How to know the exact word on which the mouse is, in a JTextArea
View Single Post
#
2
(
permalink
)
05-19-2007, 02:03 PM
levent
Senior Member
Join Date: Dec 2006
Posts: 748
You can add a
CaretListener
to your JTextArea. Then you can use methods of
String class
to detect start and end of the word on which the mouse is.
levent
View Public Profile
Send a private message to levent
Find all posts by levent