아래와 같이 추가하면,
windows default Browser 실행함.
public class OpenBrowser { public static void open(String url) { try { Runtime.getRuntime().exec("rundll32 url.dll, FileProtocolHandler " + url); } catch (IOException ex) { Logger.getLogger(AuthenticationCodeController.class.getName()).log(Level.SEVERE, null, ex); } }
} |