rohith yenumula wrote:Hi. I want to add an image to a frame. I want to know how one creates an image object and displays it in a frame.
Thanks in advance.
rohith yenumula wrote:Thanks for the example.
I have a doubt regarding the ImageIcon constructor. I tried passing the relative and absolute address of a image but there was no image displayed.
miguel lisboa wrote:java is case sensitive
so, JPEG is diferent from jpeg, i guess
rohith yenumula wrote:Hi Miguel. I have tried doing it as you told but it didn't work.
There are no compile-time or run-time errors but two .class files(DisplayImage and DisplayImage$1) were created when I ran the program. Do you have any idea why is it so?