大家帮帮忙,看一下

03-11-24 holyelle
ShowFrame()
{
*************
上面省略了
************
String str;
JLabel label= new JLable("hello");
dataTree.addTreeSelectionListener(new TreeSelectionListener()
{
public void valueChanged(TreeSelectionEvent e)
{
str=e.getPath().getLastPathComponent();//这有问题,应给怎么改?
/*************
label.setText(e.getPath().getLastPathComponent());如果像这样,应该怎样
**********/

System.out.println(e.getPath().getLastPathComponent());
}});
}