veerendra
Posts: 4
|
Posted: 09/07/2007, 9:48 PM |
|
How can we call HTML page from applet.
My requirement is when a button or a menu option in an applet is clicked, a HTML page should be opened.
|
|
|
10mas
Posts: 3
|
Posted: 09/11/2007, 6:25 AM |
|
Very easy
String cmd = null;
try {
url="www.google.es";
cmd = "rundll32" + " " + "url.dll,FileProtocolHandler" + " " + url;
Process p = Runtime.getRuntime().exec(cmd);
}
catch(java.io.IOException x) {
// couldn't exec browser
System.err.println("Error launching browser, command=" + cmd);
System.err.println("ERROR:: " + x);
}
|
|
|
|