🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18579

Re: tabpanel - no selected tab...

#18579
From: John P. McGrath
Date: Mon, 25 May 1998 00:00
25 lines
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-mail
References: <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