Dual JTree interaction  
Author Message
Sharon





PostPosted: 2006-5-12 15:03:00 Top

java-programmer, Dual JTree interaction

Hi guys

I have 2 jTree controls on a jFrame ,

And when I try to make the second jTree to react on the first jTree clicks ,

What is the correct OOP way to do it ?





 
Oliver Wong





PostPosted: 2006-5-12 22:35:00 Top

java-programmer >> Dual JTree interaction
"Sharon" <email***@***.com> wrote in message
news:email***@***.com...
>
>
> Hi guys
>
> I have 2 jTree controls on a jFrame ,
>
> And when I try to make the second jTree to react on the first jTree clicks
> ,
>
> What is the correct OOP way to do it ?

Use MVC: Model View Controller. It sounds like you have 1 big model, and
the 2 JTrees are each acting as two different views and controllers on that
model.

- Oliver