🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #10185

Re: JComponent question

#10185
From: Lori M Olson
Date: Thu, 04 Nov 1999 00:00
18 lines
1285 bytes
How about focus events?

Lori Olson
AccuMap EnerData

Steve Cannon wrote:

> 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: <38221670.AC9D8F5@accumap.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <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: Lori M Olson <lori@accumap.com>
Subject: Re: JComponent question
Date: 1999/11/04
Message-ID: <38221670.AC9D8F5@accumap.com>
X-Deja-AN: 544594724
Content-Transfer-Encoding: 7bit
References: <7vsfha$5vo7@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing