I have problem with changing card. I have a JPanel with CardLayout as layout, and other JPanel which contains JPanel with JTree. I want to add TreeSelectionListener. If I click on the node, card should change to the node title.
Here is some code:
The listener from which I want to change cards is in the second code snippet under line 159.
JPanel with cardlayout:
Here are two classes which builds JTree:
and the second class, which add JTree to the gui:
Any ideas how could I change cards in ThumbPanel from the listener in JTreeHelper ?