cs_chebil
Messages postés14Date d'inscriptionvendredi 10 février 2006StatutMembreDernière intervention 6 février 2009
-
31 mars 2006 à 09:59
cs_chebil
Messages postés14Date d'inscriptionvendredi 10 février 2006StatutMembreDernière intervention 6 février 2009
-
1 avril 2006 à 22:36
Bonjour
j'ai un probleme avec le JEditorPane:
je cherche a afficher la page html dont le code source est le suivant
//
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Essai : Connection à la caméra</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features)
{
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<center>
320*240
<script language="JavaScript">if ((navigator.appName == "Microsoft Internet Explorer") && (navigator.platform != "MacPPC")){
var resolution = "320*240";
if (resolution == "160*120")
{
document.write("<OBJECT ID='VAMCtrl' WIDTH=170 HEIGHT=150 CLASSID=CLSID:A93B47FD-9BF6-4DA8-97FC-9270B9D64A6C CODEBASE='http://192.168.0.99/plugin/h263ctrl.cab#version=1,7,0,24'>")}
if (resolution == "320*240")
{
document.write("<OBJECT ID='VAMCtrl' WIDTH=330 HEIGHT=270 CLASSID=CLSID:A93B47FD-9BF6-4DA8-97FC-9270B9D64A6C CODEBASE='http://192.168.0.99/plugin/h263ctrl.cab#version=1,7,0,24'>")}
if (resolution == "640*480")
{
document.write("<OBJECT ID='VAMCtrl' WIDTH=650 HEIGHT=510 CLASSID=CLSID:A93B47FD-9BF6-4DA8-97FC-9270B9D64A6C CODEBASE='http://192.168.0.99/plugin/h263ctrl.cab#version=1,7,0,24'>")}
document.write("")
document.write("")
document.write("")
document.write("")
document.write("")
document.write("")
document.write("")
document.write("")
document.write("</OBJECT>")} else document.write("Désolé, votre navigateur ne permet pas d'afficher la caméra !")</script>
</center>
</html>
//
et j'ai programme lecode source suivant en java pour afficher cette page
}
public static void main(String argv[]) {
try {
File f = new File("C:/Documents and Settings/administrateur/Bureau/camera3.html");
URL url = f.toURL();
Testeditor ted = new Testeditor(url);
ted.setVisible(true);
}
catch (Exception e) {
System.out.println(e.toString());
}
}
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////
le probleme est que dans le JEditorPane les lignes suivants sont affiches dans la page
Est ce que quelqu'un a une solution.
Merci d'avance