Topic: 请教:关于DefaultMutableTreeNode对象

  Print this page

1.请教:关于DefaultMutableTreeNode对象 Copy to clipboard
Posted by: lypyh
Posted on: 2004-12-14 10:46

我要做的是:点击DefaultMutableTreeNode对象,出现一对话框。可是DefaultMutableTreeNode对象好像没有相应的事件监听器,请教各位大大,应该怎么做。谢谢

2.Re:请教:关于DefaultMutableTreeNode对象 [Re: lypyh] Copy to clipboard
Posted by: kavinwang
Posted on: 2004-12-14 18:55

jtree有呀,使用
tree.addTreeSelectionListener

TreeSelectionListener只有一个public void valueChanged(TreeSelectionEvent e) 需要实现,在e中可以得到TreeNode对象


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923