How to load a gif picture file onto a JInternalFrame
843805Nov 24 2006 — edited Nov 25 2006Dear 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.