πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem for closing a JFrame

#8329
From: Ferret Renaud
Date: Wed, 20 Sep 2000 00:00
33 lines
1650 bytes
Hello,

build a class that will inherite from JFrame :
public class SuperJFrame extands JFrame
Now, in this class overwrite the dispose method :
public void dispose()
{
	// Code for stoping your timer
	.....
	// Dispose the frame
	super.dispose();
}

Now, il all you programm, replace your JFrame object by a SuperJFrame
object. By this way, you can control what's happening when the frame is
disposed or whatever.

Renaud.

"San LUC (webmail.alten.fr)" a οΏ½crit :
> 
> Hi,
> 
> I have an applet running on IE5. This applet creats a JFrame.
> The new frame have a timer. When I close this frame, it seems the timer
> continues to run.
> 
> Does anyone know about this and give me a solution to destroy the timer
> before closing the frame ?
> 
> Thank advance,
> 
> San LUC
Technical Details
Message-ID: <39C88993.7B0CB4B5@aonix.fr>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8q9vqg$fpt$1@reader1.fr.uu.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,1a94a7c45634e65e
X-Google-Attributes: gid111d45,public
X-Google-Thread: 10fd6d,1a94a7c45634e65e
X-Google-Attributes: gid10fd6d,public
From: Ferret Renaud <ferret@aonix.fr>
Subject: Re: Problem for closing a JFrame
Date: 2000/09/20
Message-ID: <39C88993.7B0CB4B5@aonix.fr>
X-Deja-AN: 671973291
Content-Transfer-Encoding: 8bit
References: <8q9vqg$fpt$1@reader1.fr.uu.net>
X-Accept-Language: fr
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: abuse@oleane.net
X-Trace: s1.read.news.oleane.net 969443672 17133 62.161.92.253 (20 Sep 2000 09:54:32 GMT)
Organization: http://www.aonix.fr
Mime-Version: 1.0
Reply-To: ferret@aonix.fr
NNTP-Posting-Date: Wed, 20 Sep 2000 09:54:32 +0000 (UTC)
Newsgroups: borland.public.jbuilder.java.swing,comp.lang.java.gui