🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

how to stop exiting

#1013
From: andy dingfelder
Date: Mon, 06 Sep 2004 02:25
11 lines
1299 bytes
How can I trap the exit icon (the upper right X) actions so that I can do some logic first and under some conditions display a message instead of exiting?

I have ajMenuFileExit_actionPerformed(ActionEvent e)  
method to do this from the file menu but the X icon is a workaround that I need to trap also.

(Im doing work with serial portsd and want to prevent them from exiting before the device is unplugged)

Thanks for any advice,

Andy
Technical Details
Message-ID: <413bca93$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,76f888c29044beef,start
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "andy dingfelder" <dingfeldera@landcareresearch.co.nz>
Sender: "andy dingfelder" <dingfeldera@landcareresearch.co.nz>
Reply-To: "andy dingfelder" <dingfeldera@landcareresearch.co.nz>
Subject: how to stop exiting
Newsgroups: borland.public.jbuilder.java.swing
X-User-Info: 202.27.240.6     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <413bca93$1@newsgroups.borland.com>
Date: 5 Sep 2004 19:25:23 -0700
X-Trace: newsgroups.borland.com 1094437523 207.105.83.66 (5 Sep 2004 19:25:23 -0700)
Lines: 11
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail