If you really mean Java and not JavaScript, then the method you tell an Applet to open a URL is like this:
Code:
AppletContext context = getAppletContext(); // assuming the object you're writing this in extends Applet or JApplet
URL url = new URL("http://www.linuxquestions.org");
context.showDocument(url);
HTH
B.