[4253] in java-interest
Linking to other pages.
daemon@ATHENA.MIT.EDU (Cristini, Jamie)
Thu Dec 14 14:04:47 1995
From: "Cristini, Jamie" <Cristinij@segaoa.com>
To: "'java-interest@java.sun.com'" <java-interest@java.sun.com>
Date: Wed, 13 Dec 95 10:11:00 PST
Howdie all,
A big thank you to all of you who helped out with my MediaTracker
problem! It works great now. Moving on from that adventure, I have run
into another problem:
I'm trying to link to another html page when you click on a specific area
of an image. When you click on the image, It will go to the html page
but it takes a little over 30 seconds before the applet begins looking.
Is there a faster way? This is the code I am using:
public boolean mouseDown(java.awt.Event evt, int x, int y)
{
try {
anchor = new URL(getDocumentBase(), "http://www.sun.com");
}
catch (MalformedURLException e)
{
anchor = null;
}
getAppletContext().showDocument(anchor);
}
thanks in advance,
Jamie Cristini
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com