简体   繁体   中英

JTree selection on mouse release

I'm using a JTree to generate some tab for my application.

Every time I select a node on right panel I load a new page.

I'd like to generate the node selection event on mouse release.

Although it has significant user interface implications, you might look at the approach shown in JTree select on mouse release . It replaces all instances of MouseListener in the tree with a listener that forwards the desired mouse events to the original.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM