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 load a gif picture file onto a JInternalFrame

843805Nov 24 2006 — edited Nov 25 2006
Dear my friends...

I have a file picture which I want to put in into each of JinternalFrame of my application.

the picture file is "logo.gif". it is the logo of the company where I work.

I don't know which class should I use and how I should use it.

I simply copied the "logo.gif" into a subdirectory (./gambar) of the directory where my code located. and than do:
Image gambar = Toolkit.getDefaultToolkit().getImage("gambar/logo.gif");
but it does not work at all
Can I use "Image" ? but how?

Anybody would be so nice for giving a very simple sample for such task?

Thank you very..very... much in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 23 2006
Added on Nov 24 2006
6 comments
114 views