|
Dernière réponse | |
---|---|
Sujet : Ouvrir une page HTML avec un bouton en Java | |
mina86 | Properties sys = System.getProperties();
String os = sys.getProperty("os.name" ); Runtime r = Runtime.getRuntime(); try { if (os.endsWith("NT" )||os.endsWith("2000" )||os.endsWith("XP" )) r.exec("cmd /c start http://forum.hardware.fr" ); else r.exec("start http://forum.hardware.fr" ); } catch (Exception ex) { ex.printStackTrace(); } |
Vue Rapide de la discussion |
---|