| 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 |
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() });
|
|
You can get the freshest copy of this page from: | or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror) |
| http://mindprod.com/jgloss/browserlaunching.html | J:\mindprod\jgloss\browserlaunching.html | |
![]() | ||
| Canadian Mind Products | ||
| mindprod.com IP:[65.110.21.43] | ||
| view Blog | Your face IP:[38.107.179.210] | |
| Feedback | You are visitor number 11. | |