mt object wouldnt load image

Hello,

Here is the code for MediaTracker object it doesnt loads image, the image is located in package DrawImage, also what is the difference between getDocumentBase() and getCodeBase()

   package DrawImage;
     
    import java.net.*;     
    import java.awt.*;
    
    public class LoadImage extends java.applet.Applet 
    {
        Image uc  ;
        URL base;
        MediaTracker mt;       
    
    	public void init()
    	{
       		mt = new MediaTracker(this);
        	try{
            		base = getDocumentBase();
            		}catch(Exception e){}
        
        	uc = getImage(base, "src//DrawImage//java.gif");
	        mt.addImage(uc,1);
        
        	try{
	        mt.waitForAll();
        	}catch(InterruptedException e){}    
	}
    
    	public void paint(Graphics g)
	{   
        	g.drawImage(uc, 45  , 45, Color.yellow, this);
    	}        
   }