开发者

How to detect and display desired message when clicked on DefaultMutableTreeNode in java?

I am tryin to make a software in which when clicked on the subnode of a jtree, detecting which node is sel开发者_StackOverflow社区ected, want to display respective message.


You will need to add a TreeSelectionListener to the model containing your nodes. The event arguments contain data for the node(s) selected. Here is some example documentation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜