Hello friends,
Got a new question, can someone explain to me how to put an HTML link in my Java program. Example ... "Click here to visit the developer website". So when someone will click on the link, the web page should automatically open in the browser.

I searched on the web, but can't find nothing. Thanks in advance.
Bybye.

Re: HTML link in Java 80 80
Re: HTML link in Java 80 80

java.awt.Desktop.getDesktop().browse(new URI("http://www.your.url")); (needs Java .6)

Re: HTML link in Java 80 80

You rock ... thanks buddy, thats what I needed.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.