drawImage?

im trying to display my image using the drawImage method, but im not too sure what i am doing wrong.

publicvoid actionPerformed(ActionEvent event){

Graphics paper = panel.getGraphics();

drawLogo(paper, 10, 20);

drawLogo(paper, 100, 100);

}

publicvoid init(){

image = getImage(getDocumentBase(),"images/picture1.jpg");

}

privatevoid drawLogo(Graphics g,

int xPos,int yPos){

g.drawImage(image, xPos, yPos, 60, 60);

g.drawImage(image, xPos, yPos, 40, 40);

g.drawImage(image, xPos, yPos, 20, 20);

}

Any Clues?[

[1060 byte] By [hemant_mistrya] at [2007-10-2 6:43:43]
# 1
Possible answer on Programming duplicate post.
abillconsla at 2007-7-16 13:52:10 > top of Java-index,Java Essentials,New To Java...