Article View: borland.public.jbuilder.java.swing
Article #10220Re: Help on creating a layout! Please!
From: Paul Furbacher [TeamB]
Date: Thu, 28 Oct 1999 00:00
Date: Thu, 28 Oct 1999 00:00
26 lines
1568 bytes
1568 bytes
Nathan Lai wrote:
> Could anyone teach me how to create the layout which is used by the code
> editors of JBuilder? I mean a sequence of JTabbedPanes together with several
> JLabels at the right bottom where the JLabels are kept shown no matter which
> JTabbedPane is chosen.
Try this, and then do some experimenting.
1. Add 2 panels to a frame which has a border layout. Set the
constraints of the two panels to Center and South, respectively.
2. Add a tabsetControl to the "center" panel.
3. Set the layout of the "south" panel to XYLayout (temporarily).
3. Add labels to the "south" panel and position them with the
dimensions and positions you want.
4. Change the layout of the "south" panel to GridBagLayout. If you
are not particularly adept at changing layout parameters using the
GridBagLayout, change back to the XYLayout whenever you need
to tweak the layout of the "south" panel.
Paul Furbacher (TeamB)
Technical Details
Message-ID:
<38189713.58FF2F4E@bilbo.bio.purdue.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7v9sis$9ae11@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,ef09e8fa8d909d55,start X-Google-Attributes: gid111d45,public From: "Paul Furbacher [TeamB]" <pf@bilbo.bio.purdue.edu> Subject: Re: Help on creating a layout! Please! Date: 1999/10/28 Message-ID: <38189713.58FF2F4E@bilbo.bio.purdue.edu> X-Deja-AN: 541739124 Content-Transfer-Encoding: 7bit References: <7v9sis$9ae11@forums.borland.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