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!

Adding an image on awt frame

843807Nov 4 2009 — edited Nov 10 2009
Hi there guys and gals,

I am trying to get an image on my Frame. I follows the instructions (or rather, copied and pasted) from this site: [http://www.roseindia.net/java/example/java/awt/AwtImage.shtml] but it didn't work.

Ultimately, I want to add the image to a label and add that label to the frame. I thought over-riding the paint method would suffice, but it didn't work :(.

Hope I get an answer

Two-Eyes
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 8 2009
Added on Nov 4 2009
20 comments
683 views