Article View: borland.public.jbuilder.java.swing
Article #9996Re: JTabbedPane initialization within Applet
From: Greg Hamer
Date: Wed, 08 Dec 1999 00:00
Date: Wed, 08 Dec 1999 00:00
32 lines
2207 bytes
2207 bytes
Is Tab B heavyweight and Tab C swing stuff? It sounds like it is. Any awt component will show right through the jTabbedPane (which is lightweight) as soon as they are made visible. If you only use swing components it should work. Also I would think that it would work if each tab was a heavyweight container such a java.awt.Panel, as one heavywight component cannot show through another heavyweight component, but I have not tried this. jeff wrote: > Hello, > > I've got some weird functionality happening with a JTabbedPane when my > applet first loads. Background -> There are three tabs that are being > made in jbInit(). These tabs are then added to the JTabbedPane. I've > got some checks and print statements at the very end of jbInit to see > how many tabs have been made and what their indexes are--that all looks > fine (0 to 2). The tabs also appear in the proper order when the applet > first runs. So my tabs appear in this order from left to right: Tab A, > B, C. > > Ok, now, the real strange thing that is happening is this: each tab has > a panel associated with it--fine. A's panel appears after the applet > first finishes loading. However, if I click tab C anytime before > clicking tab B, B's panel shows up when I click C. That is, I have to > click tab B in order to get tab C's panel to show up for it. > > There is some other weird stuff happening with the listener made for the > JTabbedPane, too, but I'm heading in another direction with that. Has > anyone seen or dealt with anything similar to what I've described? If > so, please let me know. Thanks. > > Jeff
Technical Details
Message-ID:
<384F01D7.14A79317@borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<384D20CA.38EEDDD4@commos.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,eff5f1fd074ec5ff X-Google-Attributes: gid111d45,public From: Greg Hamer <ghamer@borland.com> Subject: Re: JTabbedPane initialization within Applet Date: 1999/12/08 Message-ID: <384F01D7.14A79317@borland.com> X-Deja-AN: 558377496 Content-Transfer-Encoding: 7bit References: <384D20CA.38EEDDD4@commos.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