Home > Archive > Java Help > March 2004 > terxtarea mouse event
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
terxtarea mouse event
|
|
| jelena 2004-03-27, 12:30 am |
| I want to write some dynamic output in textcontainer and then depending on
the line of text that user clickes i want to write something else in another
textarea.
How can i track mose event on textarea in Java,or is there a better
solution.i want something like tree,but with textarea.
thank you for youre answer.
| |
| Daniel Sjöblom 2004-03-27, 12:30 am |
| jelena wrote:
> I want to write some dynamic output in textcontainer and then depending on
> the line of text that user clickes i want to write something else in another
> textarea.
> How can i track mose event on textarea in Java,or is there a better
> solution.i want something like tree,but with textarea.
> thank you for youre answer.
First of all, you must specify what exactly you are talking about when
you say textarea. Do you mean JTextArea, TextArea or something entirely
different, and what is tree? But anyways, chances are you are looking
for one of:
java.awt.event.MouseListener / java.awt.event.MouseAdapter
java.awt.event.MouseMotionListener / (adapter)
java.awt.event.MouseWheelListener / (adapter)
and of course, the corresponding events, which can be found in the same
package.
--
Daniel Sjöblom
Remove _NOSPAM to reply by mail
|
|
|
|
|