[antlr-interest] On trees and JavaBeans, part 2: tree creation
Loring Craymer
Loring.G.Craymer at jpl.nasa.gov
Thu Apr 21 11:26:10 PDT 2005
Scott--
BadExample.Java replaces DefaultTreeModel with ComponentTreeModel in the
same fragment. This fragment was from GoodExample.java.
--Loring
At 03:55 AM 4/21/2005, Scott Stanchfield wrote:
> > > 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