Link to home
Start Free TrialLog in
Avatar of nphnhi
nphnhi

asked on

changing an icon on node in jtree

Hello,
I have an applet with one tree and 2 buttons "open" and "close". When I click open button, I want to change the image icon of the node which were selected on the tree.
Please give me the idea.
Thanks
ASKER CERTIFIED SOLUTION
Avatar of zzynx
zzynx
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
exactly which icon is it you want to change?
you could try a defaultmutabletreenode with an ImageIcon as the nodes user object

Avatar of nphnhi
nphnhi

ASKER

for example, each node is a project with an icon "project_normal.gif". When I click open button, I want to change to "project_open.gif"
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial