Rendering a Page in an Applet | Launching a Browser on Multi-Platforms |
Launching A Browser in Windows | Launching a Browser in Java 1.6+ |
Launching a Browser on the Mac | Links |
Applet.this.getAppletContext().showDocument( url, window );Your Applet does not get to see the web page. The page goes straight to the browser for rendering. Because this feature can be so easily abused to wallpaper the user’s screen with popups, it is now often blocked.
Runtime.getRuntime().exec( "cmd.exe http://mindprod.com/index.html" );
rundll32.exe url.dll,FileProtocolHandler file:///E|/mindprod/jgloss.htmlwon’t work on the command line because | is reserved as the piping operator, though it will work as an exec parameter passed directly to the rundll32.exe executable.
// spawning Firefox on the Mac Runtime.getRuntime().exec( new String[] { "open", "-a", "Firefox.app", url.toString() });
This page is posted |
http://mindprod.com/jgloss/browserlaunching.html | |
Optional Replicator mirror
|
J:\mindprod\jgloss\browserlaunching.html | |
Please read the feedback from other visitors,
or send your own feedback about the site. Contact Roedy. Please feel free to link to this page without explicit permission. | ||
Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[18.97.14.84] |
| |
Feedback |
You are visitor number | |