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.