Tree Problem!!!

First i wish Happy new year to all forum members.

This new year welcomed me with a lot of problems in JSC.

One of them is before you

I have a tree.When user clicks on tree node,that nodes default image replaced with userdefined image.Every thing is fine at this point.But problem starts now.

I want when user clicks any node the then its default image replaced with user defined image. After it if he clicks another node image of previously clicked node becomes default image and newly clicked node replaced with user defined image.

I hope i explain my problem very well, i want early solution of this problem because this is urgent requirement in my project.

So i am waiting for early response from any scholar of Sun Forum.

Thanks.

[782 byte] By [@passw0rd@a] at [2007-11-26 13:54:54]
# 1
Are you using an image facet inside of each tree node, or are you relying on the imageUrl property of the tree node?// Gregory
gjmurphya at 2007-7-8 1:33:42 > top of Java-index,Development Tools,Java Tools...
# 2

Hi gregory,

I am using following code to replace default treenode image with user define image.

TreeNode treeNode = new TreeNode();

ImageHyperlink img = new ImageHyperlink();

img.setImageURL(imageURL);

treenode.getFacets().put(TreeNode.IMAGE_FACET_KEY, img);

Thanks.....

@passw0rd@a at 2007-7-8 1:33:42 > top of Java-index,Development Tools,Java Tools...
# 3
Try this link http://forum.java.sun.com/thread.jspa?forumID=881&threadID=5111443
eeboraa at 2007-7-8 1:33:42 > top of Java-index,Development Tools,Java Tools...