🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8820

What keeps a window alive?

#8820
From: Greg Safford
Date: Wed, 28 Feb 2001 20:16
12 lines
1371 bytes
I see lots of Java applications that directly or indirectly create a window
(say by instantiating a class derived from JFrame). Since the frame object
is created in the scope of the main() method, I'd expect the frame object to
be destroyed when the main() method returns. However, it is plain that this
does not happen; the frame window remains until closed, as if a reference to
it were being kept in some global collection.
Can anyone point me to a reference explaining what keeps such an object
alive?

TIA

Greg Safford
Technical Details
Message-ID: <97jmkg$kol3@bornews.inprise.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,944d3adb1ffb387d,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-02-28 12:32:03 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail
From: "Greg Safford" <gsafford@springmail.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: What keeps a window alive?
Date: Wed, 28 Feb 2001 15:16:27 -0500
Organization: Another Netscape Collabra Server User
Lines: 15
Message-ID: <97jmkg$kol3@bornews.inprise.com>
NNTP-Posting-Host: pc20085.wkap.com
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400