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

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 "click to a button to open a link java swing"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language