KNOWLEDGE LEVEL: Intermediate
PROBLEM: Software
COMPUTER TYPE:
MODEL:
RAM: Not related
OS VERSION: Windows 95
SERVICE PACK:
DESCRIPTION:
Is there anyone there that can help me with a simple Java
Programing question ¿? I'm trying to link to a html file
from within a Applet to a sub-directory where the htnl file resides.
Warren,
Welcome to No Wonder! To change the webpage with an applet, go to the jdk1.1 API docs at
http://java.sun.com/products/jdk/1.1.../packages.html, click on "java.applet", click on "AppletContext", and read the description of showDocument.
To use it try this:
URL newpage = new URL("http://your.url.com/");
AppletContext myContext = getAppletContext();
myContext.showDocument(newpage);
If you have any more questions, email me.
T.R. Fullhart
thomasf@nowonder.com http://www.nowonder.com/