Article View: aus.computers.java
Article #1094Re: Q:Closing an "extends Frame" applet..?
From: beetung
Date: Wed, 14 Jul 1999 00:00
Date: Wed, 14 Jul 1999 00:00
62 lines
2111 bytes
2111 bytes
It turns out that only Netscape 4.08 have this problem. Appletviewer that
comes with JDK have no problem closing this Frame at all. Its almost
finished. Wana have a look?
http://www-personal.monash.edu.au/~dtun3/java/
yours,
beetung.
beetung wrote in message <7lt0eh$5i6$1@towncrier.cc.monash.edu.au>...
>Hiya people,
>
>I have a simple question to ask.... I can close this extended
>ClosableFrame when its being run by the interpreter via main().
>However, its being called by an applet via init() it cannot close
>properly.
>
>Do I have to implements some methods? Heres what I ve done.
>
>
>class Viewer extends Applet {
>
> // Starting point for JDK Java Interpreter
> public void main(Strings [] blah) {
> CloseableFrame ws = new CloseableFrame();
> ws.show();
> Blah blah blah ;
> }
>
>
> // Starting point for Applet
> public void init() {
> CloseableFrame ws = new CloseableFrame();
> ws.show();
> Blah blah blah ;
> }
>
>}
>
>As I have said earlier, I _cannot_ close the implemented CloseableFrame
>when running the compiled byte code as an Applet in Netscape. However
>it is possible to close the Frame in the JAVA Interpreter running via
>main().
>
>
>Can someone please point me to the right direction?
>
>
>
>yours,
>
>beetung.
>
>
>
Technical Details
Message-ID:
<7mfio7$i98$1@towncrier.cc.monash.edu.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7lt0eh$5i6$1@towncrier.cc.monash.edu.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,54abe39b64130c9e X-Google-Attributes: gid10d6db,public From: "beetung" <beetung@yoyo.cc....monash.edu.au> Subject: Re: Q:Closing an "extends Frame" applet..? Date: 1999/07/14 Message-ID: <7mfio7$i98$1@towncrier.cc.monash.edu.au> X-Deja-AN: 500530431 Distribution: aus References: <7lt0eh$5i6$1@towncrier.cc.monash.edu.au> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@monash.edu.au X-Trace: towncrier.cc.monash.edu.au 931876423 18728 130.194.10.128 (13 Jul 1999 14:33:43 GMT) Organization: Monash University? NNTP-Posting-Date: 13 Jul 1999 14:33:43 GMT Newsgroups: aus.computers.java