Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java thread: Re: Crazy!! Tree object Casting... Error


Message #1 by "Ken Campbell" <0000643@b...> on Fri, 24 Aug 2001 17:50:24
I have no answers but a similar problem. If you setEditable(true) on a 
Jtree then it allows you to double click on the text and enter a new name 
for a node. This will then generate the ClassCastException. I was going to 
look at DefaultTreeCellRenderer and see if you could use inherited setText
(String s) method.
However, I see you have had this problem for a while. Have you made any 
progress?

Ken Campbell


> for a rename and the below code to change it, But i keep getting the 
> following:-
> java.lang.ClassCastException: java.lang.String
> 

  Return to Index