Article View: borland.public.jbuilder.java.swing
Article #8868Re: reacting to a selected tab in a jTabbbedPane
From: Bill Joy
Date: Thu, 06 Jul 2000 00:00
Date: Thu, 06 Jul 2000 00:00
16 lines
1252 bytes
1252 bytes
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:
<8k3mr3$fnc10@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3964B5DC.6181363C@iam-technology.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: "Bill Joy" <wcjoy@pacbell.net> Subject: Re: reacting to a selected tab in a jTabbbedPane Date: 2000/07/06 Message-ID: <8k3mr3$fnc10@bornews.borland.com> X-Deja-AN: 643336100 References: <3964B5DC.6181363C@iam-technology.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Reply-To: "Bill Joy" <wcjoy@NOSPAM.net> Newsgroups: borland.public.jbuilder.java.swing