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!

Expand/collapse a folder on click on arrow icon not on foldericon

843806Aug 3 2009 — edited Aug 3 2009
my foldernode has two icons and text display to display the folder node.
I have a specific requirement that,
1. on click of arrow icon only(</down arrow), the folder has to expand and collapse
2. on click of folder(expand/collapse) icon or name of the folder, it has to select it not expand or collapse.

The renderer is taking care about showing folder expand/collapse icon as well as arrow icons.
I have a mouse handler for clicking action, but before reaching mouseClicked(), itself the expand/collapse was occurring.

But as per java api, on click of arrow icon, folder icon and the name of the folder the expand/collapse actions are happening, hope definitely there is a way to achieve my requirement. I am trying to analyze at different place.
I need the experts advise to proceed, please advise.
Sorry i am unable to attach the image here.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 31 2009
Added on Aug 3 2009
3 comments
255 views