Article View: borland.public.jbuilder.java.swing
Article #13171Re: tabsetPanel problems
From: Richard Wilkman
Date: Wed, 16 Sep 1998 00:00
Date: Wed, 16 Sep 1998 00:00
52 lines
2585 bytes
2585 bytes
Alex:
This is what happens when heavyweight and lightweight components are
mixed. See your hintsandtips.txt file for more.
-Rich
Alex Humphreys wrote:
>
> i have a tabsetpanel in a DecoratedFrame that is giving me problems:
>
> When it first loads, most (not all) controls from every tab of the panel
> are showing up. When I click on a tab, then the appropriate controls
> are shown. The problem just occurs on the load. Here's some code:
>
> this.setLayout(borderLayout1);
> this.setSize(new Dimension(400, 300));
> this.setTitle("SITE Administration Tool");
> tabsetPanel1.setLabels(new String[] {"Tab1", "Tab2"});
> tabsetPanel1.setSelectedIndex(0);
> bevelPanel1.setLayout(xYLayout2);
> this.add(bevelPanel1, BorderLayout.CENTER);
> bevelPanel1.add(tabsetPanel1, new XYConstraints(3, 3, 385, 265));
> tabsetPanel1.add(bevelPanel2, "Tab1");
> bevelPanel2.add(my_lcl, new XYConstraints(10, 8, 160, 200));
> bevelPanel2.add(my_ccl, new XYConstraints(250, 10, 125, 20));
> bevelPanel2.add(my_button, new XYConstraints(180, 35, 60, 20));
> bevelPanel2.add(statusBar, new XYConstraints(1, 212, 370, 18));
> tabsetPanel1.add(bevelPanel3, "Tab2");
> bevelPanel3.add(my_tfc, new XYConstraints(130, 21, 140, 22));
> bevelPanel3.add(my_tc, new XYConstraints(9, 21, 110, 22));
> bevelPanel3.add(my_button, new XYConstraints(257, 207, 110, 22));
>
> I figure this is a swing meets not-swing problem, but I can't seem to
> figure out exactly why. Any ideas? Thanks.
>
> Alex
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rich Wilkman
Senior Quality Assurance Engineer
Borland JBuilder Team
If you see something that looks like an opinion up there,
it's mine and mine alone.
Mail sent to me from the newsgroups won't bounce but will
be ignored. If I have time, I'll respond, but you have
a better chance if you confine your posts to the newsgroups
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<35FFD9CC.7635AF78@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35EDACB2.875E9340@sema4.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,6aa81ef101ebe831 X-Google-Attributes: gid111d45,public From: Richard Wilkman <rwilkman@inprise.com> Subject: Re: tabsetPanel problems Date: 1998/09/16 Message-ID: <35FFD9CC.7635AF78@inprise.com> X-Deja-AN: 391731749 Content-Transfer-Encoding: 7bit References: <35EDACB2.875E9340@sema4.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing