Images in applets
===

i wrote this code for showing some simple picture on the applet screen, but the picture doesnt show untill i resize the applet window, what can i do to overcome it?

    public class Test extends JApplet {
    	public void init () {
    		SwingUtilities.invokeLater(new Runnable() {
    			public void run() {
    				createGUI();
    			}
    		});
    	}
    	public void start() {
    	}
    	public void createGUI() {
    		getContentPane().add(new GUIThing(getImage(getCodeBase(), "gladiator.gif")));
    	}
    }

    public class GUIThing extends JPanel {
    	Image image;
    	public GUIThing(Image i2) {
    		image=i2;
    	}
    	public void paintComponent(Graphics g) {
    		Graphics2D g2=(Graphics2D) g;
    		g2.drawImage(image,100,100,100, 100, null);
    	}
    }