Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
4085 connectés 

 


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();
             }

Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
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();
             }
thenutskiller :bounce:  
SVP c'est urgent !!!
thenutskiller :bounce:
thenutskiller dans une application. En fait je voudrais ouvrir le fichier HTML avec le programme associé sous windows.
darklord et ton bouton il est dans une applet ou dans une application?
thenutskiller Comment faire pour ouvrir une page HTML en cliquant sur un bouton programmé en java ?

Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)