Developer's Daily | Java Applets |
front page | java | perl | unix | DevDirectory |
The URLButton applet (shown above) demonstrates how to jump to a given URL from a Java applet. Just type a valid URL into the text field, then click the button, and you'll be taken to that URL.
This applet uses the getAppletContext().showDocument() method to achieve this "jumping" effect.
Click here to return to the description page for this applet, where you can download the Java source code or class file.