sir!

I am trying to do developing JTree with the features when I pressed a node it should be expanded as well as it should be show the contents of that component in the viewport area.but I haven't get this please help me.