Re: Newbie Problem with Java Label



aspnetpal wrote:
Vova thanks for your response.
I have also included your code (only if statement just to see that If
I'm getting any image) and I wasn't getting any image at all.

It may mean that your path to file is not correct: ImageIcon icon = createImageIcon("images/mapImage1.gif", "a pretty but meaninglesssplat");

"images/mapImage1.gif"
or
"/images/mapImage1.gif"

To check it try the absolute path, for example:
"someroot/some project/any another dir/images/mapImage1.gif"
for Windows
"C:\\workspace\\something else\\images\\mapImage1.gif"
.