Article View: borland.public.jbuilder.java.swing
Article #10182JComponent question
From: Steve Cannon
Date: Thu, 04 Nov 1999 00:00
Date: Thu, 04 Nov 1999 00:00
11 lines
1128 bytes
1128 bytes
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:
<7vsfha$5vo7@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,ef3274490dac44f7,start X-Google-Attributes: gid111d45,public From: "Steve Cannon" <scannon@austin.rr.com> Subject: JComponent question Date: 1999/11/04 Message-ID: <7vsfha$5vo7@forums.borland.com> X-Deja-AN: 544459252 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