Browse to URI (or URL) in the Default Browser Directly From Java
if (Desktop.isDesktopSupported()) {
Desktop dt = Desktop.getDesktop();
if (dt.isSupported(Desktop.Action.BROWSE)) {
dt.browse(new URI("http://localhost:8182/EnergieVisible"));
}
}
From Java 1.6.
October 3rd, 2009 in
Java