TextArea Listener

Hey I have a JtextArea that holds different lines of information. Is it possible to add an listener to a specific lines and perform a task which will depend on the selection of course. If so any help would be great trying to do thisthanksAmbrose
[273 byte] By [Ambrosea] at [2007-10-1 4:23:34]
# 1

> Hey

>

> I have a JtextArea that holds different lines of

> information. Is it possible to add an listener to a

> specific lines and perform a task which will depend

> on the selection of course. If so any help would be

> great trying to do this

>

> thanks

>

> Ambrose

Sure, you add a listener for ChangeEvent or something like that. Then get the selected text and compare it to whatever strings you want, if true, do something. That's it I think.

wbrackena at 2007-7-9 4:53:38 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...