Article View: borland.public.jbuilder.java.swing
Article #13169Re: tabsetPanel problems
From: Peter Rowe
Date: Wed, 16 Sep 1998 00:00
Date: Wed, 16 Sep 1998 00:00
44 lines
2546 bytes
2546 bytes
I have the same problem what I did is cycled through all of the index upon
initialization. This is NOT a pretty solution. I tried to do it before I
displayed the tabset, but that didn't work either.
resourceTabsetPanel.setSelectedIndex(6);
resourceTabsetPanel.setSelectedIndex(5);
resourceTabsetPanel.setSelectedIndex(4);
resourceTabsetPanel.setSelectedIndex(3);
resourceTabsetPanel.setSelectedIndex(2);
resourceTabsetPanel.setSelectedIndex(1);
resourceTabsetPanel.setSelectedIndex(0);
Peter
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
Technical Details
Message-ID:
<35FFB8C6.481EC757@scires.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: Peter Rowe <prowe@scires.com> Subject: Re: tabsetPanel problems Date: 1998/09/16 Message-ID: <35FFB8C6.481EC757@scires.com> X-Deja-AN: 391699148 Content-Transfer-Encoding: 7bit References: <35EDACB2.875E9340@sema4.com> To: Alex Humphreys <ahumphreys@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