🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Preventing close of JInternalFrame

#10676
From: nlaan
Date: Wed, 18 Aug 1999 00:00
15 lines
1095 bytes
You are _adding_ a Listener to the MDISheet.  That listener gets _added_ to
a list of Listeners which consists of your listener and the default
JInternalFrame Listener.  It is the default JInternalFrame Listener which is
closing the MDISheet.

I beleive that calling this method in your Constructor will get around your
problem, but I have not tested it...

setDefaultCloseOperation(this.DO_NOTHING_ON_CLOSE);



Jim Stoll wrote in message <37BB2406.ABEB620D@crtnet.com>...
>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??
Technical Details
Message-ID: <7pf8j6$30v1@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37BB2406.ABEB620D@crtnet.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,6a1846c8084a630a
X-Google-Attributes: gid111d45,public
From: <nlaan>
Subject: Re: Preventing close of JInternalFrame
Date: 1999/08/18
Message-ID: <7pf8j6$30v1@forums.borland.com>
X-Deja-AN: 514376044
References: <37BB2406.ABEB620D@crtnet.com>
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.swing