• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTree

 
Ravi Gupta
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could someone me tell me how to put differnet image on leaves of the branch of a JTree?
[This message has been edited by Ravi Gupta (edited May 17, 2001).]
 
Sanjay Bahrani
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
Yeah you can add a Image to a tree, I can give you a link that will illustrate you this example.
I hope this link will solve your problem..... http://www2.gol.com/users/tame/swing/examples/JTreeExamples4.html
Bye....
 
Ravi Gupta
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sanjay i will try this code.
Originally posted by Sanjay Bahrani:
Hi there,
Yeah you can add a Image to a tree, I can give you a link that will illustrate you this example.
I hope this link will solve your problem..... http://www2.gol.com/users/tame/swing/examples/JTreeExamples4.html
Bye....

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!