Image img=panel.getToolkit().getImage("abcd.jpg") ;Graphics g=panel .getGraphics();g.drawImage(img,0,0,50,50,panel);