🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Menubar and JInternalFrame

#12583
From: Steve Waters
Date: Thu, 10 Dec 1998 00:00
23 lines
1456 bytes
we use menubar inside frames, what we do is pass to the constructor of the
class the frame and then in the class we create the menubar and add it to
the frame, that way we can change the menu at any time, and set the class
object that create the menu to null to allow the garbage collector to free
up the memory. Works for us.


Steve


Nadia Akrour wrote:

> Hi all,
> I would like to finalize internal frames.
> It works only when the internal frame does not contain a menu bar. It
> seems like the SetJMenuBar() function make the menu bar referenced by
> the frame (rootPane layaredPane or what ?)  but how ? What can I do to
> break this link ?
> All my internal frames have a menu bar so they will not be freed and my
> appli will go out of memory quickly. So it's a very critical problem for
> me.
> Please any help would be very appreciated. Thanks in advance.
> Nad.
Technical Details
Message-ID: <366F6314.73E5CDEE@bellsouth.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <366E5D45.9342BA14@spring.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,7a1fee86da1b3c36
X-Google-Attributes: gid111d45,public
From: Steve Waters <steve_w@bellsouth.net>
Subject: Re: Menubar and JInternalFrame
Date: 1998/12/10
Message-ID: <366F6314.73E5CDEE@bellsouth.net>
X-Deja-AN: 420708810
Content-Transfer-Encoding: 7bit
References: <366E5D45.9342BA14@spring.fr>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing