当前位置: 技术问答>java相关
请问,如何实现并处理JTree节点Multi-Selected?
来源: 互联网 发布时间:2015-03-06
本文导语: 谢谢。 | public void valueChanged(TreeSelectionEvent event) { // the user selected a different node--update description TreePath[] paths = tree.getSelectionPaths(); if (path == null) return; ...
谢谢。
|
public void valueChanged(TreeSelectionEvent event)
{ // the user selected a different node--update description
TreePath[] paths = tree.getSelectionPaths();
if (path == null) return;
String description;
for(int j=0;j
{ // the user selected a different node--update description
TreePath[] paths = tree.getSelectionPaths();
if (path == null) return;
String description;
for(int j=0;j