Article View: borland.public.jbuilder.java.swing
Article #9989JTabbedPane initialization within Applet
From: jeff
Date: Tue, 07 Dec 1999 00:00
Date: Tue, 07 Dec 1999 00:00
23 lines
1651 bytes
1651 bytes
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:
<384D20CA.38EEDDD4@commos.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,eff5f1fd074ec5ff,start X-Google-Attributes: gid111d45,public From: jeff <marendoj@commos.com> Subject: JTabbedPane initialization within Applet Date: 1999/12/07 Message-ID: <384D20CA.38EEDDD4@commos.com> X-Deja-AN: 557725678 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