j utilise JEditorPane pour afficher une page web.
private static JEditorPane matiereHTML = new JEditorPane();
...
matiereHTML.setPage("http://www.etsmtl.ca/");
matiereHTML.setEditable(false);
matiereHTML.addHyperlinkListener(new HLList());
ça marche numéro 1 quand la page web est sur le net. sauf quand elle est local, ça marche pas :-(
j ai essayé :
matiereHTML.setPage("index.html");
matiereHTML.setPage("/index.html");
matiereHTML.setPage("c:/index.html");
matiereHTML.setPage("c:index.html");
rien ne passe. setPage doit recevoir soit un string ou un type URL. J'ai refait pareil avec une varaible de type URL, même problème
quelqu'un pourrait tu m'aider svp ??
-------------------------------------------------
Dragon alias aussi
Waxime mais bon, pas le gout de refaire un nouveau profil lol
-------------------------------------------------