Skip to Main Content

Java Programming

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!

Adding an image to a specific location in jframe?

893337Aug 3 2012 — edited Aug 5 2012
ok so i have an image:
ImageBackgroundPanel temp =null;
temp = new ImageBackgroundPanel(friend);

frame.add(temp);
frame.setVisible(true);
where my variable "friend" is just a bufferedimage (temp is a wrapper class mostly). So, what i want is simple: i want that image to be put in a different place!
As the code is now, the image is put at the top left corner of the frame. how do i move it? how do i do this dynamically? (i wanna animate the image by redrawing it several times a second in a different position? I know how to animate it, how do you move it?!?!?!?!
Someone please help me :(...
This post has been answered by gimbal2 on Aug 3 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 2 2012
Added on Aug 3 2012
4 comments
775 views