🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: stopping window close event

#333
From: dingfelder
Date: Wed, 17 Aug 2005 21:17
16 lines
1633 bytes

>I don't think you can intercept and cancel the window
>closing event.  Perhaps all you can do is set the
>frame to be visible again.  Annoying, but unless you
>change the container to a dialog box, for which you
>do get a chance to cancel an attempt to close, you
>are stuck ... unless someone knows some other trick.
>-- 
>Paul Furbacher (TeamB)

You mention setting the frame visible again... this seems to me to imply that the window frame has not exited bu just become invisible.

If this is true, then I could deal with that... although I assume the app might flicker when becoming visible?

If this is not, then I assume all the data the user has entered would dissipear which is not good.
Technical Details
Message-ID: <4303a950$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43018137$1@newsgroups.borland.com> <4301f032$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,18e74e2743c5a2cd
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "dingfelder" <dingfeldera_nospam@sirtrack.com>
Sender: "dingfelder" <dingfeldera_nospam@sirtrack.com>
Reply-To: "dingfelder" <dingfeldera_nospam@sirtrack.com>
Subject: Re: stopping window close event
Newsgroups: borland.public.jbuilder.java.swing
X-User-Info: 202.27.240.6     
References: <43018137$1@newsgroups.borland.com> <4301f032$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4303a950$1@newsgroups.borland.com>
Date: 17 Aug 2005 14:17:04 -0700
X-Trace: newsgroups.borland.com 1124313424 207.105.83.66 (17 Aug 2005 14:17:04 -0700)
Lines: 16
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail