The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

How do you want to display the link?

Posted by Kishori Sharan on January 30, 2001 at 7:54 PM

There are many ways to do that. I don't know what is your requirement regarding GUI. I will tell you how to go to new page from an applet. Let me know the actual GUI requiremnt then I will tell you exact procedure.
To open a new page from applet use
getAppletContext().showDocument ( "your new page URL" ) ;
or,
getAppletContext().showDocument ( "your new page URL", "target ie. which window will display the page" ) ;
Here getAppletContext() is a method of Applet class which returns an object of a class which implements AppletContext interface.
In simplest implementation you can write the above code in button clicked event.
Thanx
Kishori






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us