Article View: borland.public.jbuilder.java.language
Article #19295Re: How to access parent Frame from Applet?
From: Conrad Hoesle-Kienzlen
Date: Wed, 18 Feb 1998 00:00
Date: Wed, 18 Feb 1998 00:00
26 lines
1389 bytes
1389 bytes
Alex, there have been code snippets in the ...applet-issues how to get the parent frame, but it is not really necessary. You can create a new Dialog with: Dialog myDialog = new Dialog(new Frame()); ...Conrad Alex Humphreys wrote: > I have an applet inside a frame inside an application. From the Applet, > I am trying to load a dialog box, which requires a reference to the > frame. here's how I'm trying to do it: > > my_Dialog my_Dialog = new my_Dialog(this.getParent()); > my_Dialog.show(); > > But this gives an error: "Error (598) constructor > my_Dialog(java.awt.Container) not found in class rte.my_Dialog." > > Why is getParent() returning the Container and not the Frame, as I > thought it should (this is the phrase that the docs told me to use)? > How can i create this Dialog box? > > Thanks. > > --Alex
Technical Details
Message-ID:
<34EB1E7C.962EFD50@csi.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<34EB12A6.ED625106@sema4.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,518e42f1a7b03a9b X-Google-Attributes: gidf74b3,public From: Conrad Hoesle-Kienzlen <Conrad_Hoesle@csi.com> Subject: Re: How to access parent Frame from Applet? Date: 1998/02/18 Message-ID: <34EB1E7C.962EFD50@csi.com> X-Deja-AN: 326282615 Content-Transfer-Encoding: 7bit References: <34EB12A6.ED625106@sema4.com> Content-Type: text/plain; charset=us-ascii Organization: CHK IT-Consulting Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language