Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to change Cursor when the mouse is over an unselected JTree node?

843805Mar 22 2007 — edited Jul 11 2007
Hi,

I've done a quite a bit of searching but can't find a way to do this. I'm using a JTree for a fair bit of navigation in my application. Everything in the JTree is single click, so I want to have the mouse cursor change to the hand cursor whenever it's hovering over a node on my tree.

I know I can use JTree.setCursor() to get the desired effect over the entire tree, but I'd like to have something similar for individual nodes.

Any ideas?

Ryan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 8 2007
Added on Mar 22 2007
5 comments
177 views