Thread View: borland.public.jbuilder.java.swing
2 messages
2 total messages
Started by Zoran Pjevic
Thu, 03 Jun 2004 10:20
Exiting swing application
Author: Zoran Pjevic
Date: Thu, 03 Jun 2004 10:20
Date: Thu, 03 Jun 2004 10:20
18 lines
1435 bytes
1435 bytes
Hello everybody One small question: 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? Zoran
Re: Exiting swing application
Author: Paul Furbacher [TeamB]
Date: Thu, 03 Jun 2004 13:34
Date: Thu, 03 Jun 2004 13:34
35 lines
2201 bytes
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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads