Article View: borland.public.jbuilder.java.swing
Article #9731Problem using JTabbedPane in swing 1.1.1
From: Rosalinda Pritchard
Date: Thu, 10 Feb 2000 00:00
Date: Thu, 10 Feb 2000 00:00
20 lines
1450 bytes
1450 bytes
Hi Rich or any that can help.
I've just created a simple program using swing1.1.1 JTabbedPane.
The first tab has a button and the second has nothing except for the
panel that made the tab.
When I run the program both tabs have the button.
In the design section. I've set the layout to defaultLayout.
When I change it to PaneLayout, I get this error message at run time:
<<java.lang.IllegalArgumentException: component not found in tabbed pane
at
javax.swing.JTabbedPane.setSelectedComponent(JTabbedPane.java:396)
at Wid.Frame1.jbInit(Compiled Code)
at Wid.Frame1.<init>(Compiled Code)
at Wid.Application1.<init>(Application1.java:11)
at Wid.Application1.main(Application1.java:30)>>
Can you help?
Technical Details
Message-ID:
<38A24620.FB3D8D54@sysv.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<389F4993.5F478E84@sysv.com> <38A05003.B257E8AB@inprise.com> <38A08E4B.F0932B7D@sysv.com> <38A09BB2.16CBF404@inprise.com> <38A0F51A.D88BC129@sysv.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,526ebca17dda4daa X-Google-Attributes: gid111d45,public From: Rosalinda Pritchard <rosalinda@sysv.com> Subject: Problem using JTabbedPane in swing 1.1.1 Date: 2000/02/10 Message-ID: <38A24620.FB3D8D54@sysv.com> X-Deja-AN: 583982394 Content-Transfer-Encoding: 7bit References: <389F4993.5F478E84@sysv.com> <38A05003.B257E8AB@inprise.com> <38A08E4B.F0932B7D@sysv.com> <38A09BB2.16CBF404@inprise.com> <38A0F51A.D88BC129@sysv.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing