开发者

dynamic display of JTree?

开发者 https://www.devze.com 2023-02-10 20:32 出处:网络
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?

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

精彩评论

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