• Post Reply Bookmark Topic Watch Topic
  • New Topic

TreePath object

 
Serghei Jelauc
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!!!
I have following problem:
I have oabject TreePath path.
When I add to this path one more child
path = path.pathByAddChild("test") and after it
I try to expand this path mytree.expandPath(path)
java.lang.ClassCastException: java.lang.String exception occured.
Where is problem.
Thanks in advance.
 
raj madhuram
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try passing the TreeNode object instead of the string to the pathByAddingChild() method.
 
Serghei Jelauc
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks! It works.
[ January 21, 2003: Message edited by: Serghei Jelauc ]
 
Paper has not yet been outlawed – so let your Java Swing application print with wild abandon: JPDF
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!