probleme de visualisation l applet dans IE
bonjour;
j ai un pb de visualiser l applet dans mon nivigateur voici le code
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| package CompusPress;
import java.applet.*;
import java.awt.*;
public class TApp extends Applet{
/**
* @param args
*/
String str;
public void init(){
str = getParameter("text");
if (str == null) str = "Hello Java !";
getAppletContext().showStatus("mechatikhaled@maktoob.com");
}
public void paint(Graphics g){
Font f = new Font("TimesRoman",Font.BOLD,36);
g.setFont(f);
g.setColor(Color.red);
g.drawString(str,40,40);
}
} |
et voici le code html
Code:
1 2 3 4 5 6 7 8 9 10
| <html>
<head>
<title> Mechati Khaled</title>
</head>
<body>
<APPLET CODE="TApp.class" WIDTH=600 HEIGHT=100>
<PARAM NAME="text" VALUE="HELLO WORLD !">
</APPLET>
</body>
</html> |
*****************************************
mais le navigateur n affiche pas lapplet il me dit "Echec de chargement lapplet"
merci