开发者

Jtree node expansion without selection

开发者 https://www.devze.com 2022-12-18 07:15 出处:网络
Is it possible to expand/collapse a node in 开发者_开发技巧a JTree without having it selected? (not highlighted)

Is it possible to expand/collapse a node in 开发者_开发技巧a JTree without having it selected? (not highlighted)

Thanks a lot


You should be able to expand/collapse each node you care to by using the expand or collapse method. Here's a good example on javaalmanac.

http://www.exampledepot.com/egs/javax.swing.tree/ExpandAll.html

0

精彩评论

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

关注公众号