62,621
社区成员
发帖
与我相关
我的任务
分享
String name = tree.getSelectionPath().getLastPathComponent().toString();
if(name.equals("中国")){
textArea.setText("123123123123123");
}
if(name.equals("美国")){
textArea.setText("hjhjhajdad");
}
if(name.equals("浙江")){
textArea.setText("bbwq");
}
中国 美国 这些节点可以监听,这里就是说点击后textArea会读取
中国的子节点 浙江 点击后就没什么效果。。
怎么监听 浙江这种 数据库动态添加的子节点呢?