Article View: borland.public.jbuilder.java.language
Article #18579Re: tabpanel - no selected tab...
From: John P. McGrath
Date: Mon, 25 May 1998 00:00
Date: Mon, 25 May 1998 00:00
25 lines
1415 bytes
1415 bytes
Oyvind L Johansen <johansen@tabermatics.com> wrote in article <6jsdja$o4712@forums.borland.com>... > >I'm using the tabpanel bean. The problem is that when it opens none of the > >tabs are selected even if one is selected in the inspector and shows up as > >selected there. Anybody having any idea? > > I figured out this one. When I looked into the code JBuilder put the > setSelectedIndex() method first in the jbInit() method, before any of the > panels was added to the tabpanel. When I moved the setSelectedIndex() method > to the end of the jbInit method everything worked. This seems like a bug to > me. Maybe it's fixed in JBuilder2...... I came across a similar bug with CheckboxGroup. Re-ordering the code fixed the problem. -- John P. McGrath <mcgrath@enter.net> <jpm@nscs.fast.net>
Technical Details
Message-ID:
<01bd87ba$03e70320$0e47aacc@ferd>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6jcqjh$d1s11@forums.borland.com> <6jsdja$o4712@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa3e3,e038e53be283ac2e X-Google-Attributes: gidfa3e3,public X-Google-Thread: f74b3,ffc681e0e0cfcf1d X-Google-Attributes: gidf74b3,public From: "John P. McGrath" <mcgrath@enter.net> Subject: Re: tabpanel - no selected tab... Date: 1998/05/25 Message-ID: <01bd87ba$03e70320$0e47aacc@ferd> X-Deja-AN: 356272583 References: <6jcqjh$d1s11@forums.borland.com> <6jsdja$o4712@forums.borland.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language,borland.public.jbuilder.ide