Article View: borland.public.jbuilder.java.swing
Article #9852Re: Repost: Newbie ? JSplitPane or SplitPanel help
From: Paul Furbacher [TeamB]
Date: Mon, 10 Jan 2000 00:00
Date: Mon, 10 Jan 2000 00:00
28 lines
1774 bytes
1774 bytes
James Kelly wrote:
> I am trying to create a GUI where there are two splitpanes, or two
> panels using PaneLayout (could also use SplitPanel if that would work).
> What I am doing is placing one of the splitpanes into the other so that
> I get two tree views, split, on the left side of the larger splitpane,
> and a panel on the right side of the larger splitpane.
>
> I can do all that just fine, but I then want to be able to switch
> between more than one panel on the right side depending on which item is
> selected in the tree views.
>
> Has anyone else done this? I can not find examples showing anything
> close to this in code, but JBuilder uses it so I know it is possible.
>
> Any pointers would be great. I am relatively knew to Java, but am
> fairly experienced in doing this type of thing in Objective-C.
Two ways to go:
1. Place a panel in the right-hand side. Set the layout to "CardLayout"
and add a panel for each type of item selectable from the tree view.
2. Place a tabset panel in the right-hand side. Hide its tabs. Add
panels which correspond to the selections in the tree view.
Paul Furbacher (TeamB)
Technical Details
Message-ID:
<387A701C.EFB61B76@bilbo.bio.purdue.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<38761E95.B980E218@aaxion.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,8b6fd324a4abdbd7 X-Google-Attributes: gid111d45,public From: "Paul Furbacher [TeamB]" <pf@bilbo.bio.purdue.edu> Subject: Re: Repost: Newbie ? JSplitPane or SplitPanel help Date: 2000/01/10 Message-ID: <387A701C.EFB61B76@bilbo.bio.purdue.edu> X-Deja-AN: 570931233 Content-Transfer-Encoding: 7bit References: <38761E95.B980E218@aaxion.com> Content-Type: text/plain; charset=us-ascii Organization: Reverse Alchemy, Inc. Mime-Version: 1.0 Reply-To: pf@bilbo.bio.purdue.edu Newsgroups: borland.public.jbuilder.java.swing