> 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.