• Post Reply Bookmark Topic Watch Topic
  • New Topic

Icons...  RSS feed

Tris Rabar
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having a bit of a problem: I've created a JTree with checkboxes as the nodes, and in addition, I'm tyring to remove the default icons at the nodes and replace them with my own. However, when I then try to get the path of a node selection, I'm getting the following:
Selected: BasicTreeNode@401369
Selected: BasicTreeNode@a0544
Selected: BasicTreeNode@1946c2
The code that does this display is as follows:

Without the icons, this works fine and gives me the proper path. The code for customizing the tree nodes is:

And, the checkBox nodes themselves are set by code like the following:

Can anyone help me identify the problem??
Thanks for your time..
* Tricia *
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!