kapac
Messages postés11Date d'inscriptionmercredi 9 juillet 2003StatutMembreDernière intervention14 avril 2012
-
14 avril 2012 à 12:54
kapac
Messages postés11Date d'inscriptionmercredi 9 juillet 2003StatutMembreDernière intervention14 avril 2012
-
14 avril 2012 à 13:26
Bonjour;
je voudrais utiliser fileopenservice et j'ai fait le code basique suivant:
import javax.jnlp.FileContents;
import javax.jnlp.FileOpenService;
import javax.jnlp.ServiceManager;
import javax.swing.JApplet;
/**
*
* @author pa
*/
public class MyJap3 extends JApplet {
/**
* Initialization method that will be called after the applet is loaded into
* the browser.
*/
@Override
public void init() {
try
{
FileOpenService fileopenservice =
(FileOpenService)ServiceManager.lookup("javax.jnlp.FileOpenService");
FileContents cont=
fileopenservice.openFileDialog(null,null);
}catch(Exception e){
e.printStackTrace();
}
// TODO overwrite start(), stop() and destroy() methods
}
}
j'obtiens le classique uninitialized a fileopenservice
j'ai mis jnlp.jar et javaws.jar dans le classpath