Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to Draw a Image on a Canvas in a JFrame

843807Oct 19 2005 — edited Oct 19 2005
hi, im having problems trying to draw a image in a canvas in a jFrame. the image is a gif,
and first i try
g.drawImage(image,x,y,this), where image is already set with the gif and x = 0 and y = 0
then
canvas.paint(g);
canvas.update(g);

this doenst work, help me
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 16 2005
Added on Oct 19 2005
1 comment
270 views