Article View: borland.public.jbuilder.java.swing
Article #10186Re: JComponent question
From: enisoc
Date: Thu, 04 Nov 1999 00:00
Date: Thu, 04 Nov 1999 00:00
22 lines
1455 bytes
1455 bytes
have you tried COMPONENT_SHOWN from java.awt.event.ComponentEvent? the dicription in the docs says "This event indicates that the component was made visible." Steve Cannon <scannon@austin.rr.com> wrote in message news:7vsfha$5vo7@forums.borland.com... > Is there a method or event that gets called/fired everytime a JComponent is > displayed (other than paint). I'm having a problem whereby when a JPanel is > displayed, I need to be able to trap something and call another method via > an Interface. I realize that paint is called everytime the JComponent is > painted but this is called way too often. I just want to know when the > JPanel is displayed. > > What I'm trying to do is dynamically load JPanels into a portion of a > JSplitterPane and tell the application to change a title panel with the name > of the newly displayed panel. It works OK the first time the panel is > displayed. > >
Technical Details
Message-ID:
<7vteff$dsk10@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7vsfha$5vo7@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,ef3274490dac44f7 X-Google-Attributes: gid111d45,public From: "enisoc" <anthonyy@surfree.com> Subject: Re: JComponent question Date: 1999/11/04 Message-ID: <7vteff$dsk10@forums.borland.com> X-Deja-AN: 544644718 References: <7vsfha$5vo7@forums.borland.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing