Article View: borland.public.jbuilder.java.swing
Article #10675Preventing close of JInternalFrame
From: Jim Stoll
Date: Wed, 18 Aug 1999 00:00
Date: Wed, 18 Aug 1999 00:00
26 lines
1233 bytes
1233 bytes
I'm trying to intercept the close of a JInternalFrame and I think I'm
doing it correctly, but it's not working. Any suggestions?? I could
probably catch it with a VetoableChangeListener, but everything I read
says that I shouldn't have to...
public class MDISheet extends JInternalFrame implements
InternalFrameListener
public MDISheet() {
super();
...
setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
addInternalFrameListener(this);
...
}
...
public void internalFrameClosing(InternalFrameEvent parm1) {
//not calling dispose() or hide() but it's still closing!!!
...
}
}
Thanks,
Jim Stoll
jestoll@crtinc.com
Technical Details
Message-ID:
<37BB2406.ABEB620D@crtnet.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,6a1846c8084a630a,start X-Google-Attributes: gid111d45,public From: Jim Stoll <jestoll@crtnet.com> Subject: Preventing close of JInternalFrame Date: 1999/08/18 Message-ID: <37BB2406.ABEB620D@crtnet.com> X-Deja-AN: 514376043 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing