Image on canvas

I have a class that extends Canvas. Now i want to show a image as the background. I tried using paint() and paintComponent() method but to no avail. can anyone help me or have any suggestion *** to why this happened? Thanks in advanced.

[243 byte] By [Hanz_05a] at [2007-11-27 10:47:18]
# 1

Too vague. What exactly did you try? Post code.

kablaira at 2007-7-28 20:24:08 > top of Java-index,Java Essentials,Java Programming...
# 2

what kind og image? like jpg,gif,bmp, etc...

or creating your own by using graphics.

Yannixa at 2007-7-28 20:24:08 > top of Java-index,Java Essentials,Java Programming...
# 3

<deleted>

Message was edited by:

Yannix

Yannixa at 2007-7-28 20:24:08 > top of Java-index,Java Essentials,Java Programming...