/***** Code de MesExemples.com *******/ import javax.swing.*; public class applet extends JApplet { public void init() { JLabel label = new JLabel("Bienvenu sur applet de mesexemples.com", SwingConstants.CENTER); add(label); } } Code HTML d'exécution de l'applet <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//FR"> <html> <head> </head> <body bgcolor="000000"> <center> <applet code = "applet.class" width = "500" height = "300" > </applet> </center> </body> </html> |
Cet article Java-applet: Créer une applet Simple est apparu en premier sur .
