I have a problem with my images in my java project. The project is a simple chess program for human players only. The problem is that it works fine in JCreator Lite's Apllet viewer but when I try to open it in an HTML it gives me the error mentioned in the thread title. As I'm really a newbie in java any help would be greatly appreciated. Here's the code I think makes the trouble in browsers:
private Image FeherParasztImage = getToolkit().createImage("feher_paraszt.gif");
private Image FeketeParasztImage = getToolkit().createImage("fekete_paraszt.gif");
private Image FeherBastyaImage = getToolkit().createImage("feher_bastya.gif");
private Image FeketeBastyaImage = getToolkit().createImage("fekete_bastya.gif");
private Image FeherLoImage = getToolkit().createImage("feher_lo.gif");
private Image FeketeLoImage = getToolkit().createImage("fekete_lo.gif");
private Image FeherFutoImage = getToolkit().createImage("feher_futo.gif");
private Image FeketeFutoImage = getToolkit().createImage("fekete_futo.gif");
private Image FeherKiralynoImage = getToolkit().createImage("feher_kiralyno.gif");
private Image FeketeKiralynoImage = getToolkit().createImage("fekete_kiralyno.gif");
private Image FeherKiralyImage = getToolkit().createImage("feher_kiraly.gif");
private Image FeketeKiralyImage = getToolkit().createImage("fekete_kiraly.gif");
private Image AtlatszoImage = getToolkit().createImage("atlatszo.gif");
private Image mutatoImage = getToolkit().createImage("mutato1.gif");
//letrehozom a babuk ikonjait a kepekbol
ImageIcon FeherParasztIcon = new ImageIcon(FeherParasztImage);
ImageIcon FeketeParasztIcon = new ImageIcon(FeketeParasztImage);
ImageIcon FeherBastyaIcon = new ImageIcon(FeherBastyaImage);
ImageIcon FeketeBastyaIcon = new ImageIcon(FeketeBastyaImage);
ImageIcon FeherLoIcon = new ImageIcon(FeherLoImage);
ImageIcon FeketeLoIcon = new ImageIcon(FeketeLoImage);
ImageIcon FeherFutoIcon = new ImageIcon(FeherFutoImage);
ImageIcon FeketeFutoIcon = new ImageIcon(FeketeFutoImage);
ImageIcon FeherKiralynoIcon = new ImageIcon(FeherKiralynoImage);
ImageIcon FeketeKiralynoIcon = new ImageIcon(FeketeKiralynoImage);
ImageIcon FeherKiralyIcon = new ImageIcon(FeherKiralyImage);
ImageIcon FeketeKiralyIcon = new ImageIcon(FeketeKiralyImage);
ImageIcon AtlatszoIcon = new ImageIcon(AtlatszoImage);
ImageIcon mutatoIcon = new ImageIcon(mutatoImage);
p.s.: all the gif's exist and are in the same folder as the Html.. I'm really lost with that one if anyone has any idea please help