🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Exiting swing application

#969
From: Paul Furbacher [TeamB]
Date: Thu, 03 Jun 2004 13:34
35 lines
2201 bytes
Zoran Pjevic wrote:

> When I click the close button in upper right corner of my swing
> application, releasing of all objects takes some time, but the the GUI
> disappears immediately.
> 
> But when I exit via File-Exit the GUI stays on the screen untill
> everything is released, and finally the GUI disappears too. But since
> the relasing takes around 10 seconds, the GUI is frozen for that time,
> which is not very nice.
> 
> How can I make the GUI disapperas immediately, even when exiting the
> application with File-Exit, so that the objects are released in the
> background?

Add a window listener in the frame which is being
closed with the "x" button, and in the implemented
windowClosing() method, call the clean-up method
which is being called by the File > Exit action.


-- 


Paul Furbacher (TeamB)

   Save time, search the archives:
        http://www.borland.com/newsgroups/ngsearch.html

   Is it in Joi Ellis's Faq-O-Matic?
        http://www.visi.com/~gyles19/fom-serve/cache/1.html

   Finally, please send responses to the newsgroup only.
   That means, do not send email directly to me.
   Thank you.
Technical Details
Message-ID: <40bf28e7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <sdutb0l146jvftu3mbpn1ncmbu9bdn4ort@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,677dd7f1f70cbc67
X-Google-Attributes: gid111d45,public
Date: Thu, 03 Jun 2004 09:34:34 -0400
From: "Paul Furbacher [TeamB]" <pfurbacher@mac.com>
Organization: Reverse Alchemy, Inc.
User-Agent: Mozilla Thunderbird 0.5 (Macintosh/20040208)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: Exiting swing application
References: <sdutb0l146jvftu3mbpn1ncmbu9bdn4ort@4ax.com>
In-Reply-To: <sdutb0l146jvftu3mbpn1ncmbu9bdn4ort@4ax.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.142.222.65
Message-ID: <40bf28e7$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1086269671 69.142.222.65 (3 Jun 2004 06:34:31 -0700)
Lines: 35
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail