The URLButton applet 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.
If you'd rather just download the class
file, you can download it (using Netscape) by right-clicking on this link, and choosing the "Save Link As..." option: