Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Open Browser with No Address Bar from Java

807569Jun 6 2006 — edited Jun 6 2006
How to open a IE Browser from Java with no address bar, tool bar etc ?

I am able to open browser like the listed code, but the requirement for me is it has to open with no "Address Bar", buttons.

I know we can do that in "Javascript" but how to or is there a way to do that in java/swing.

Any help is greatly appreciated.

String WIN_FLAG = "url.dll,FileProtocolHandler";
String WIN_PATH = "rundll32";
String url = "www.google.com"
String cmd = WIN_PATH + " " + WIN_FLAG + " " + url;
Runtime.getRuntime().exec( cmd );
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 4 2006
Added on Jun 6 2006
2 comments
157 views