I am new to swing I am making a GUI, in which I have used a JTree placed on
BorderLayout.West , now I want to show different Components in
BorderLayout.Center depending on the node I select, these may be JTable,
JTextArea I have made all these componenets and Jtree listener but I am
unable to show components on center, how can i acheive this, so that I click
on node it shows the corresponding component and when I choose other node
the previous component should dissappear and new component should be
displayed.