🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #1188

Q:Closing an "extends Frame" applet..?

#1188
From: beetung
Date: Tue, 06 Jul 1999 00:00
42 lines
1673 bytes
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: <7lt0eh$5i6$1@towncrier.cc.monash.edu.au>
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: 10d6db,54abe39b64130c9e,start
X-Google-Attributes: gid10d6db,public
From: "beetung" <beetung@yoyo.cc....monash.edu.au>
Subject: Q:Closing an "extends Frame" applet..?
Date: 1999/07/06
Message-ID: <7lt0eh$5i6$1@towncrier.cc.monash.edu.au>
X-Deja-AN: 497742133
Distribution: aus
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-Complaints-To: abuse@monash.edu.au
X-Trace: towncrier.cc.monash.edu.au 931267857 5702 130.194.10.130 (6 Jul 1999 13:30:57 GMT)
Organization: Monash University?
NNTP-Posting-Date: 6 Jul 1999 13:30:57 GMT
Newsgroups: aus.computers.java