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 Java in General and the fly likes java open url 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 » Java in General
Bookmark "java open url" Watch "java open url" New topic

java open url

Shubhanshu Gupta

Joined: Dec 14, 2011
Posts: 3
how to open a url in java?
Tim Moores

Joined: Sep 21, 2011
Posts: 2408
Jeff Verdegan

Joined: Jan 03, 2004
Posts: 6109

Shubhanshu Gupta wrote:how to open a url in java?

That depends exactly what you mean by that. There are at least two obvious possible interpretations. If you don't TellTheDetails(⇐ click) and ask a clear, precise question, it makes it difficult for people to help you.
Rob Spoor

Joined: Oct 27, 2005
Posts: 19649

Jeff is right. Tim's example will open the URL in code only, it won't be made visible. To open a URL visibly you need a completely separate approach (hint: java.awt.Desktop).

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: java open url
Similar Threads
tool to get the time taken to execute a function
code complication
open source framework
How to convert HTML to PDF?
Java code for extracting data from a HTML Table from a web page