insertion applet dans page html
Bonjour,
Mon applet ne s'affiche pas dans la page html que je lui attribue.
Accueil.java
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| package universite;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
class Accueil extends JApplet{
private JButton button; // valider
public void init(){
button = new JButton("Valider");
getContentPane().add(button);
}
} |
index.html
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <html>
<head>
<title>Application</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table align="center">
<tr>
<td>
<jsp:Plugin
type = "applet"
code = "universite.Accueil.class"
codebase="applets"
jreversion="1.4"
width = "400" height = "400">
</jsp:plugin>
</td>
</tr>
</table>
</body>
</html> |
Tout s'affiche sauf l'applet... Il y a pas un moyen de tester l'applet?