Answers for "java swing click a button to open a browser"

0

java how to open a link

Runtime rt = Runtime.getRuntime();
String url = "https://www.example.com";
try {
	rt.exec("rundll32 url.dll,FileProtocolHandler " + url);
} catch (IOException ioException) {
	ioException.printStackTrace();
}
Posted by: Guest on December-25-2020

Code answers related to "java swing click a button to open a browser"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language