I have a JTree on the left side of the frame. Each node in the tree has a corresponding panel that is to be displayed on the right side as the user clicks that node. It is not the same panel that is displaying different data. It can be entirely different panels. What is the best way to do this?
Share
Use
CardLayoutto “flip” the panel that is being displayed.