Article View: borland.public.jbuilder.java.swing
Article #11137Re: JTree & JSplitPane
From: Tad Frysinger
Date: Fri, 09 Jul 1999 00:00
Date: Fri, 09 Jul 1999 00:00
26 lines
1463 bytes
1463 bytes
In article <3784DD91.9FB317C9@mindspring.com>, songhuang@mindspring.com says... > Hello. > In JBuilder's AppBrowser, there is a structure pane(on the left) and > content pane(on the right). The structure pane contains the Tree > component, which is made up by all the components in the project. and > the content pane has the GUI layout. When you select/delete/add a > component in the content pane, and the same component is > selected/deleted/added in the structure pane as well. and vice versa. > > I would like to do just that. Any ideas? Specially, when you add a > component to your GUI layout, how does the Tree get updated in the > structure pane? > > This probably can not be explained in a few lines. Any info that can > help me get started are appreciated. > > Song > > > You have to manage the event interaction yourself. The way I do it is have a single model structure for components, and the tree and GUI layout are two views of the same model. Tad Frysinger (TeamB)
Technical Details
Message-ID:
<MPG.11f034d15f62fb62989a49@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3784DD91.9FB317C9@mindspring.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,200012c3eda73b5f X-Google-Attributes: gid111d45,public From: tfrysinger@earthlink.net (Tad Frysinger) Subject: Re: JTree & JSplitPane Date: 1999/07/09 Message-ID: <MPG.11f034d15f62fb62989a49@forums.borland.com> X-Deja-AN: 499288634 References: <3784DD91.9FB317C9@mindspring.com> Organization: Freezone Enterprises Newsgroups: borland.public.jbuilder.java.swing