Article View: borland.public.jbuilder.java.swing
Article #1016Re: JTabbedPane listener - detecting tab add and remove
From: John McGrath [TeamB]
Date: Mon, 06 Sep 2004 09:05
Date: Mon, 06 Sep 2004 09:05
17 lines
1437 bytes
1437 bytes
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.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<413c2871$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41266305.232819877@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: "John McGrath [TeamB]" <ng-b@JPMcGrath.net> Subject: Re: JTabbedPane listener - detecting tab add and remove Newsgroups: borland.public.jbuilder.java.swing References: <41266305.232819877@newsgroups.borland.com> User-Agent: XanaNews/1.16.4.2 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 NNTP-Posting-Host: 141.158.35.112 Message-ID: <413c2871$1@newsgroups.borland.com> Date: 6 Sep 2004 02:05:53 -0700 X-Trace: newsgroups.borland.com 1094461553 141.158.35.112 (6 Sep 2004 02:05:53 -0700) Lines: 17 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail