java 如何设置JTree的第一个一级节点为选中状态
如题,已知DefaultTreeNodenode,JTree(node),如何设置JTree的一个节点为选中状态...
如题,已知DefaultTreeNode node,JTree(node),如何设置JTree的一个节点为选中状态
展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励30(财富值+成长值)
3个回答
2015-06-05
展开全部
void
setSelectionPath(TreePath path)
Selects the node identified by the specified path.
void
setSelectionPaths(TreePath[] paths)
Selects the nodes identified by the specified array of paths.
void
addSelectionPath(TreePath path)
Adds the node identified by the specified TreePath
to the current selection.
void
addSelectionPaths(TreePath[] paths)
Adds each path in the array of paths to the current selection.
setSelectionPath(TreePath path)
Selects the node identified by the specified path.
void
setSelectionPaths(TreePath[] paths)
Selects the nodes identified by the specified array of paths.
void
addSelectionPath(TreePath path)
Adds the node identified by the specified TreePath
to the current selection.
void
addSelectionPaths(TreePath[] paths)
Adds each path in the array of paths to the current selection.
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2017-09-22
展开全部
voidsetSelectionPath(TreePathpath)Selectsthenodeidentifiedbythespecifiedpath.voidsetSelectionPaths(TreePath[]paths)Selectsthenodesidentifiedbythespecifiedarrayofpaths.voidaddSelectionPath(TreePathpath)
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
void
setSelectionPath(TreePath path)
Selects the node identified by the specified path.
void
setSelectionPaths(TreePath[] paths)
Selects the nodes identified by the specified array of paths.
void
addSelectionPath(TreePath path)
Adds the node identified by the specified TreePath
to the current selection.
void
addSelectionPaths(TreePath[] paths)
Adds each path in the array of paths to the current selection.
setSelectionPath(TreePath path)
Selects the node identified by the specified path.
void
setSelectionPaths(TreePath[] paths)
Selects the nodes identified by the specified array of paths.
void
addSelectionPath(TreePath path)
Adds the node identified by the specified TreePath
to the current selection.
void
addSelectionPaths(TreePath[] paths)
Adds each path in the array of paths to the current selection.
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询