🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Instantiating Dialog from a Menu

#14813
From: Jon C. Creyts
Date: Wed, 04 Aug 1999 00:00
16 lines
1135 bytes
Simple Q:

What is the easiest way to identify the parent FRAME associated with a
menu.  As a simple example, suppose I would like to instantiate a dialog
box when a menu item is selected.  Constructing a new dialog box
requires that a parent frame be identified.  If the menu is a class of
its own, I need some way to reference the frame wherein the menu resides
to create the dialog box.  Is there a function similar to getParent that
allows you to do so?

There must be a clean way to make the connection.

Any shared thoughts would be greatly appreciated.

Cheers,
Jon Creyts
Technical Details
Message-ID: <37A82854.622A082E@newton.berkeley.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,3ff82da5ba67b967,start
X-Google-Attributes: gidf74b3,public
From: "Jon C. Creyts" <jcreyts@newton.berkeley.edu>
Subject: Instantiating Dialog from a Menu
Date: 1999/08/04
Message-ID: <37A82854.622A082E@newton.berkeley.edu>
X-Deja-AN: 508977928
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.language