pro_java thread: Re: Crazy!! Tree object Casting... Error
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
>