Answers for "open link in java"

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"

Java Answers by Framework

Browse Popular Code Answers by Language