🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Closing frame windows...

#20002
From: John Papadomichelakis
Date: Wed, 12 Nov 1997 00:00
74 lines
2777 bytes
This is a multi-part message in MIME format.
--------------A81BB850BA66E8EA049C4644
Content-Type: text/plain; charset=iso-8859-7
Content-Transfer-Encoding: 7bit



Michael J. Rozlog wrote:

> John,
>
> This is rather a lengthy response to your question... and the answer does not
> come till closer to the end.  This was a response to an earlier question about
> objects and garbage collection however, it does give you the solution to your
> problem with multiple frames... if you have any other questions just ask!

One Question which (I guess) it's easy to answer to someone familiar with Java.

Let's say that in the primary window, I hold the references of the
opened child windows.

Currently I make the follow check to prevent multiple instances of the
same child:

    if(iw_st_families==null){
       iw_st_families = new w_st_families();
       iw_st_families.validate();
       iw_st_families.setVisible(true);
      } else {
      iw_st_families.setVisible(true);
    }

However this is wrong. The iw_st_families==null is true only the
first time. If I open and then dispose() the window, the variable is
not null.

So... please forgive my ignorant in this but...
why dispose is not like destroying the object?
What value will iw_st_families have after the garbage collection?
Is there a safe way to determine if the object is valid?

I really thank you on this...

--

Papadomichelakis John
"Unite for Java! - http://www.javalobby.org"
__________________________________________________
email : michelos@freemail.gr
URL   : http://users.spark.net.gr:8080/~michelos/
TEL   : 30 31 758 429,       30 31 709 796
__________________________________________________


--------------A81BB850BA66E8EA049C4644
Content-Type: text/x-vcard; charset=iso-8859-7; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for John Papadomichelakis
Content-Disposition: attachment; filename="vcard.vcf"

begin:          vcard
fn:             John Papadomichelakis
n:              Papadomichelakis;John
org:            BIA
adr:            9 Filippou;;Euosmos;Thessaloniki;;56224;Greece
email;internet: michelos@freemail.gr
x-mozilla-cpt:  ;0
x-mozilla-html: TRUE
version:        2.1
end:            vcard


--------------A81BB850BA66E8EA049C4644--
Technical Details
Message-ID: <3468DEC3.DB6FB2E7@freemail.gr>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <346493C4.8E07FFC6@freemail.gr> <34654F8E.B4C5EDB1@msn.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,94bc9b1ceb724919
X-Google-Attributes: gidf74b3,public
From: John Papadomichelakis <michelos@freemail.gr>
Subject: Re: Closing frame windows...
Date: 1997/11/12
Message-ID: <3468DEC3.DB6FB2E7@freemail.gr>
X-Deja-AN: 288741285
References: <346493C4.8E07FFC6@freemail.gr> <34654F8E.B4C5EDB1@msn.com>
Organization: None
Newsgroups: borland.public.jbuilder.java.language