Article View: borland.public.jbuilder.java.swing
Article #10187Re: JComponent question
From: Steve Cannon
Date: Thu, 04 Nov 1999 00:00
Date: Thu, 04 Nov 1999 00:00
33 lines
1798 bytes
1798 bytes
This appears to only work when setVisible(true) is called on the component and no other time. This will not work for me. I believe I've tried it already. enisoc <anthonyy@surfree.com> wrote in message news:7vteff$dsk10@forums.borland.com... > 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:
<7vthvv$diu11@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7vsfha$5vo7@forums.borland.com> <7vteff$dsk10@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: "Steve Cannon" <scannon@austin.rr.com> Subject: Re: JComponent question Date: 1999/11/04 Message-ID: <7vthvv$diu11@forums.borland.com> X-Deja-AN: 544660337 References: <7vsfha$5vo7@forums.borland.com> <7vteff$dsk10@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