I am new to swing .I am using JTree to construct a tree in swing. Is there any method to co开发者_StackOverflow中文版nstruct tree when we click on button in the same window?
Means something like when i select some button it will show me tree.
The general code for adding components to a visible GUI is:
panel.add( someComponent );
panel.revalidate();
panel.repaint();
精彩评论