[5357] in java-interest

home help back first fref pref prev next nref lref last post

Lists

daemon@ATHENA.MIT.EDU (eric@onshore.com)
Tue Feb 6 14:34:41 1996

From: eric@onshore.com
Date: Tue, 06 Feb 1996 11:56:41 -0600
To: java-interest@java.sun.com

Hi,

I am trying to write an applet like the gamelan "navigate" applet. For those
who haven't seen it, it's a button that, when clicked, opens a windows with
a text listing of the sections of the site. When one clicks on a "section",
Netscape will load the URL for that section.

I have a few questions:

* In order to handle action() for a window (Frame) with buttons, it seems as
though I need to subclass Frame (I'll refer to this class as myFrame). Is
that right?

* Is it best to include all of the "add()-ing" in myFrame or in an Applet
method, such as init()? Or does it matter?

* In order to load the URL using getAppletContext().showDocument(myURL), it
seems that I should either pass the appletcontext to myFrame or cause
myFrame to call a method in Applet, such as myApplet.loadURL(myURL). If
there is so, is there a preferred way?

* Will any of this cause a method verification error in Netscape?

Thanks,
Eric


-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post