X error, impossible de compiler
Salut, j'ai commencer a coder une applet, j'arrive a l'executer mais pas a la compiler, après execution la console me renvoie :
run:
Code:
1 2 3 4 5 6 7
| X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 10 (X_UnmapWindow)
Resource id in failed request: 0x4e0000e
Serial number of failed request: 414
Current serial number in output stream: 419
Java Result: 1
BUILD SUCCESSFUL (total time: 2 seconds) |
Et voici a quoi ressemble mon applet :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import javax.swing.JApplet;
/**
*
* @author pj
*/
public class Applet extends JApplet {
private Image img;
/**
* Initialization method that will be called after the applet is loaded
* into the browser.
*/
@Override
public void init() {
// TODO start asynchronous download of heavy resources
this.setBackground(new Color(0x4d4864));
}
@Override
public void paint(Graphics g) {
img=getImage(getCodeBase(),"./GFXs/bulle.png");
g.drawImage(img, 0, 0, this);
}
// TODO overwrite start(), stop() and destroy() methods
} |
Merci de votre aide !