Article View: borland.public.jbuilder.java.language
Article #19298Re: How to access parent Frame from Applet?
From: Alex Humphreys
Date: Wed, 18 Feb 1998 00:00
Date: Wed, 18 Feb 1998 00:00
31 lines
1603 bytes
1603 bytes
GREAT! Thanks! Now how do I send a variable created in the Dialog box to the Applet when I'm done with the Dialog box? Conrad Hoesle-Kienzlen wrote: > 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:
<34EB874F.490A86A9@sema4.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<34EB12A6.ED625106@sema4.com> <34EB1E7C.962EFD50@csi.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: Alex Humphreys <ahumphreys@sema4.com> Subject: Re: How to access parent Frame from Applet? Date: 1998/02/18 Message-ID: <34EB874F.490A86A9@sema4.com> X-Deja-AN: 326421841 Content-Transfer-Encoding: 7bit References: <34EB12A6.ED625106@sema4.com> <34EB1E7C.962EFD50@csi.com> Content-Type: text/plain; charset=us-ascii Organization: None Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language