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!

TreeView icons appear and disappear

918044Dec 11 2012 — edited Dec 12 2012
So I've got a TreeView working fine, then I tried to add an icon to each of the items using either the ctor: TreeItem<>(value, graphic) or the item.setGraphic(graphic) call. The icons show up on some of the items but not others, without a detectable pattern. Also, the icons sometimes appear when I collapse an item then disappear when I expand it.

I tried using a pretty large icon file, and now all of my items are spread out like they have left space for the icon, but only some of them show it.

Any Ideas?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 9 2013
Added on Dec 11 2012
4 comments
757 views