When running on Eclipse i can see results of paintComponent, but not on HTML
===

    public class Test extends JApplet {
    	public void init () {
    		SwingUtilities.invokeLater(new Runnable() {
    			public void run() {
    				createGUI();
    			}
    		});
    	}
    	
    	public void createGUI() {
    		getContentPane().add(new GUIThing());
    	}
    }

    public class GUIThing extends JPanel {
    	public void paintComponent(Graphics g) {
    		
    		Graphics2D g2=(Graphics2D) g;
            g2.drawString("WT", 20, 20);
    		try {
    			g2.drawImage(ImageIO.read(new File("gladiator.gif")),100,100,100, 100, null);
    		} catch (IOException e) {
    			g2.drawString("Couldnt!!!", 100, 100);
    		}
    	}
    }


    <applet code="test.Test"
    		archive="test.jar"
    		width = 1000,
            height = 1000 >


gladiator.gif is put in the same directory as the HTML file, yet it dont get drawn.

ive tried not including gladiator.gif, and instead of writing the string Couldnt!!! it shows a blank white page...

this is the gladiator if any1 wants to give it a shot:
![this is the gladiator if any1 wants to give it a shot][1]

When i delete the drawImage related lines it does show the WT string, so i guess its just something weird with the image drawing, what could it be?


  [1]: http://i.stack.imgur.com/vAUUa.gif