Article View: borland.public.jbuilder.java.swing
Article #8871Re: reacting to a selected tab in a jTabbbedPane
From: Rick Young
Date: Fri, 07 Jul 2000 00:00
Date: Fri, 07 Jul 2000 00:00
20 lines
1418 bytes
1418 bytes
thank you, thank you, thank you...... If you were closer, I'd share my
doughnut with you!!
Bill Joy wrote:
> JTabbedPane tabs = new JTabbedPane();
> tabs.addChangeListener(new ChangeListener() {
> public void stateChanged(ChangeEvent e) {
> int index = tabs.getSelectedIndex();
> }
> });
>
> "Rick Young" <young@iam-technology.com> wrote in message
> news:3964B5DC.6181363C@iam-technology.com...
> > I need to run a validation process when a user clicks on a tab to switch
> > to a different tabbed panel. The focusLost method doesn't work when the
> > user clicks on a tab to change to a different tabbed jPanel, and I can't
> > get my program to respond when the new tabbed jPanel gets the focus
> > (focusGained isn't triggered).
> >
Technical Details
Message-ID:
<39660C05.5C4A5C65@iam-technology.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3964B5DC.6181363C@iam-technology.com> <8k3mr3$fnc10@bornews.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,fac1a81efa0ecf26 X-Google-Attributes: gid111d45,public From: Rick Young <young@iam-technology.com> Subject: Re: reacting to a selected tab in a jTabbbedPane Date: 2000/07/07 Message-ID: <39660C05.5C4A5C65@iam-technology.com> X-Deja-AN: 643512375 Content-Transfer-Encoding: 7bit References: <3964B5DC.6181363C@iam-technology.com> <8k3mr3$fnc10@bornews.borland.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