Article View: borland.public.jbuilder.java.swing
Article #9732Problem using JTabbedPane in swing1.1.1
From: Rosalinda Pritchard
Date: Thu, 10 Feb 2000 00:00
Date: Thu, 10 Feb 2000 00:00
20 lines
1291 bytes
1291 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:
<38A24767.3390E06F@sysv.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,1e05597e4776beed,start X-Google-Attributes: gid111d45,public From: Rosalinda Pritchard <rosalinda@sysv.com> Subject: Problem using JTabbedPane in swing1.1.1 Date: 2000/02/10 Message-ID: <38A24767.3390E06F@sysv.com> X-Deja-AN: 583984883 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing