[antlr-interest] On trees and JavaBeans, part 2: tree creation

Scott Stanchfield scott at javadude.com
Thu Apr 21 03:55:37 PDT 2005


> > TreeNodes are **optional**. YOU DON'T NEED THEM TO DO 
> JTREE. See the 
> > example code I posted for how you SHOULD do adaptation of 
> an existing 
> > structure.
> > (See the GoodExample.java)
> 
> You mean the line that reads
> 		f.getContentPane().add(new JScrollPane(new 
> JTree(new DefaultTreeModel(new ComponentTreeNode(ftp)))));
> 

YOU READ BadExample.java. READ GoodExample.java, like I said.

Sheesh.

-- Scott






More information about the antlr-interest mailing list