Article View: borland.public.jbuilder.java.swing
Article #7507Re: Jtree
From: Edgar Silva
Date: Mon, 15 Jan 2001 17:17
Date: Mon, 15 Jan 2001 17:17
66 lines
2574 bytes
2574 bytes
> Can you explain your problem in more detail,
> I have an impression that you want to create a model dynamically, if so,
> then after creating a TreeModel Object you must call
> tree.setModel(TreeModel) function, so that view can update its self
> according to new Model.
Re: Tahnks Khurram .... But Treemodel is not a Interface? When I declare a
object and instancing with the TreeModel, I got errors when i using the
statment:
TreeModel Clients = new TreeModel();
Or scuse, but what the Packge, due a red the information I stand that there
is another classes that implement the interface this interface TreeModel...
Khurram..... can you expose a simple sample how to make this, with Jtree
Swing...
Simple Nodes...
Clients...
- David Bowe
+ CDS
- DVDS
...None
- Beatles
- CDS
...YellowSubmarine
... Beatles For Sale
- DVDS
... YellowSubmarine
Scuse again, I have experience with Delphi and Pynthon, I wanna to know how
is the funcionality inside this class....
Thanks Again....
> (Here tree is a instance of JTree class, that represents your view)
> > Hi Folks...
> > Somebody already work with JTree, i know that have a JTree to work with
> > datasets, but i want to permice a dinamic loading to JTree.
> >
> > I declared:
> > DefaultMutableTreeNode Root = new DefaultMutableTreeNode(jTree1);
> > DefaultTreeModel TView = new DefaultTreeModel(Root);
> > --
> >
> > When I select the Model.... Dont happen nothing...
> >
> > Somebody, can help ?
> >
> > Thans to much...
> >
> > Edgar
> >
> >
>
>
Technical Details
Message-ID:
<93vajn$qlv3@bornews.inprise.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!skynet.be!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!not-for-mailReferences:
<93nj7a$rj48@bornews.inprise.com> <3a602590_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,1f7a045f6e4ff706 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2001-01-15 09:16:06 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!skynet.be!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!not-for-mail From: "Edgar Silva" <silva@atc.com.br> Newsgroups: borland.public.jbuilder.java.swing Subject: Re: Jtree Date: Mon, 15 Jan 2001 15:17:27 -0200 Organization: Another Netscape Collabra Server User Lines: 68 Message-ID: <93vajn$qlv3@bornews.inprise.com> References: <93nj7a$rj48@bornews.inprise.com> <3a602590_2@dnews> NNTP-Posting-Host: 200.212.61.129 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700