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!

Prevent certain cells in TreeView from being selected!?

cshFeb 10 2012 — edited Feb 10 2012
Hi,

is it possible to prevent certain cells in a TreeView from being selected?

I have a TreeView and the TreeItem's on the first "depth" should not be selectable.

I tried to add an EventHandler to the tree item and caught Event.ANY, but no event was dispatched, when a cell was selected.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 9 2012
Added on Feb 10 2012
1 comment
683 views