摘要: /*利用哈希表的数量来建立树结构*/ class TreesDemo extends JPanel{ public TreesDemo(){ JFrame f = new JFrame("Hashtable"); Hashtable hashtable1 = new Hashtable(); Has 阅读全文
posted @ 2016-03-05 20:59 嘿壳 阅读(485) 评论(0) 推荐(0) 编辑
摘要: /*最简单的JTree示例*/ class MyTree extends JFrame{ public MyTree(String s){ super(s); Container con = new getContentPane(); DefaultMutableTreeNode root = ne 阅读全文
posted @ 2016-03-05 20:42 嘿壳 阅读(190) 评论(0) 推荐(0) 编辑