Article View: borland.public.jbuilder.java.swing
Article #1018Re: JTabbedPane listener - detecting tab add and remove
From: Bill D. Pirkle
Date: Mon, 06 Sep 2004 16:20
Date: Mon, 06 Sep 2004 16:20
17 lines
1434 bytes
1434 bytes
On 6 Sep 2004 02:05:53 -0700, "John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote: >On 8/20/2004 at 4:50:59 PM, Bill D. Pirkle wrote: > >> Is there a way to listen for tab additions and removals to a >> JTabbedPane? I read the help and Googled but all I found was how to >> listen for tab selection changes. > >You can add a ContainerListener to the JTabbedPane. You will get a >componentAdded() event each time a tab is added. Thanks John, that sounds perfect! I'm in the midst of some Visual FoxPro coding right now (dont' ask!), but I'll try your suggestion later this week. Bill D. Pirkle
Technical Details
Message-ID:
<413c8e09.206285653@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mailReferences:
<41266305.232819877@newsgroups.borland.com> <413c2871$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,e6a16ff7bb5ebb64 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: mbpirkle@NOSPAM.att.net (Bill D. Pirkle) Newsgroups: borland.public.jbuilder.java.swing Subject: Re: JTabbedPane listener - detecting tab add and remove Date: Mon, 06 Sep 2004 16:20:24 GMT Message-ID: <413c8e09.206285653@newsgroups.borland.com> References: <41266305.232819877@newsgroups.borland.com> <413c2871$1@newsgroups.borland.com> X-Newsreader: Forte Free Agent 1.21/32.243 NNTP-Posting-Host: 65.40.100.147 X-Trace: newsgroups.borland.com 1094487624 65.40.100.147 (6 Sep 2004 09:20:24 -0700) Lines: 17 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail