我正在尝试制作一个软件,其中在单击jtree的子节点时,检测到选择了哪个节点,希望显示相应的消息。
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 .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.