Article View: borland.public.jbuilder.java.swing
Article #13207tabsetPanel problems
From: Alex Humphreys
Date: Wed, 02 Sep 1998 00:00
Date: Wed, 02 Sep 1998 00:00
28 lines
1847 bytes
1847 bytes
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:
<35EDACB2.875E9340@sema4.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,6aa81ef101ebe831,start X-Google-Attributes: gid111d45,public From: Alex Humphreys <ahumphreys@sema4.com> Subject: tabsetPanel problems Date: 1998/09/02 Message-ID: <35EDACB2.875E9340@sema4.com> X-Deja-AN: 387250320 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing