darklord22 Nightwish rulezzzzzzzzzzzzz | Olivier51 a écrit a écrit :
Voici le code de l'applet
import java.awt.*;
public class IRChat extends javax.swing.JApplet
{
String greeting;
public void init() { greeting = "Salut"; }
public void start() { greeting = "Bonjour"; }
public void paint(Graphics screen)
{
Graphics2D screen2D = (Graphics2D)screen;
screen2D.drawString(greeting,25,50);
}
}
Et le navigateur affiche dans la barre d'état :
exception : access denied (java.lang.RuntimePermission modifyThreadGroup)
|
essaie ca
Code :
- import java.awt.*;
- public class IRChat extends Applet
- {
- String greeting;
- public void init() { greeting = "Salut"; }
- public void start() { greeting = "Bonjour"; }
- public void paint(Graphics screen)
- {
- Graphics2D screen2D = (Graphics2D)screen;
- screen2D.drawString(greeting,25,50);
- }
- }
|
---------------
What is popular is not always right, what is right is not always popular :D
|