This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Open an webbrowser window without any tool or address bar from Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Open an webbrowser window without any tool or address bar from Java" Watch "Open an webbrowser window without any tool or address bar from Java" New topic
Author

Open an webbrowser window without any tool or address bar from Java

Chris Baron
Ranch Hand

Joined: Mar 21, 2003
Posts: 1049
Hi,
apart from Desktop.browse(URI uri) and JavaScript workarounds,
do you know of a good free API to open an webbrowser window without any tool or address bar from Java?

Thanks Chris
Chris Janicki
Greenhorn

Joined: Aug 30, 2006
Posts: 21

I believe the only way to control a browser that way is via javascript. The only alternative I can think of is to open a Java-based browser window (i.e. there are a few Swing-based widgets capable of rendering HTML), but they often have limited support for the latest HTML/Javascript/plug-ins. If you're controlling what's supposed to appear in the pop-up, that may be a way to go. If you're just showing something from a third-party web site, then that would be a fragile solution.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Several way are mentioned in http://www.coderanch.com/how-to/java/Java-FAQ#launch-browser. Why would you want to avoid Desktop.browse, though?
 
jQuery in Action, 2nd edition
 
subject: Open an webbrowser window without any tool or address bar from Java
 
Similar Threads
Disabling shift-click button
Applet window opeining without breaking the socket connection
window.open() in applet
Disabling ALT + ENTER in IE7 by using javascript.
urgent help : servlets !!!!!