Article View: borland.public.jbuilder.java.swing
Article #7580Re: JTabbedPane ChangedEvent() trap
From: John McGrath TeamB
Date: Sat, 20 Jan 2001 08:24
Date: Sat, 20 Jan 2001 08:24
18 lines
1334 bytes
1334 bytes
On Fri, 19 Jan 2001 17:33:49 -0800, james wrote:
> How do I trap the tab's ChangedEvent() before it actually
> happens. I would like to do data validation before the
> new tab is switched to.
If you trap the event and just switch the JTabbedPane back to the other
tab if the validation fails, I do not think the user will be able to
see that it has changed.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.14d30e76ddf09185989edd@forums.borland.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!130.59.211.10.MISMATCH!merapi!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!not-for-mailReferences:
<3a68eb05$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,cea48020043ba8e1 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2001-01-20 00:30:36 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!130.59.211.10.MISMATCH!merapi!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!not-for-mail From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.swing Subject: Re: JTabbedPane ChangedEvent() trap Date: Sat, 20 Jan 2001 03:24:32 -0500 Organization: Another Netscape Collabra Server User Lines: 18 Message-ID: <MPG.14d30e76ddf09185989edd@forums.borland.com> References: <3a68eb05$1_1@dnews> NNTP-Posting-Host: dslcv1-60.fast.net X-Newsreader: MicroPlanet Gravity v2.30