[Biojava-l] Cast to Sequence

Tom Oinn tmo at ebi.ac.uk
Sun Jul 31 09:23:48 EDT 2005

Tom Oinn wrote:

> You should use : Sequence s = 
> (Sequence)((DefaultMutableTreeNode)getUserObject()); instead, and next 
> time read the javadoc for TreeCellRenderer and the like more carefully :)

Or even : Sequence s = 
(Sequence)((DefaultMutableTreeNode)value).getUserObject(); in the case 
of wanting code that actually compiles!


More information about the Biojava-l mailing list