2012年5月18日

Swing使用总结

摘要: 一、JTree:http://hi.baidu.com/beer_zh/blog/item/5c135c8f4d7ad1ebf11f3666.htmlhttp://blog.csdn.net/arjick/article/details/45266921、常用方法:(1)、选择模式改成只能单选tree.getSelectionModel().setSelectionModel(TreeSelectionModel.SINGLE_TREE_SELECTION);(2)、取得选中的节点(DefaultMutableTreeNode)tree.getLastSelectedPathComponent 阅读全文

posted @ 2012-05-18 14:49 izumi 阅读(457) 评论(0) 推荐(0)

导航