开发者

dynamic display of JTree?

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();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜