Re: Newbie Problem with Java Label
- From: Vova Reznik <address@xxxxxxxx>
- Date: Fri, 30 Dec 2005 14:36:42 GMT
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" .
- Follow-Ups:
- Re: Newbie Problem with Java Label
- From: aspnetpal
- Re: Newbie Problem with Java Label
- References:
- Newbie Problem with Java Label
- From: aspnetpal
- Re: Newbie Problem with Java Label
- From: Vova Reznik
- Re: Newbie Problem with Java Label
- From: aspnetpal
- Newbie Problem with Java Label
- Prev by Date: Re: How to add elements to a JList without preventing refresh
- Next by Date: Re: How to add elements to a JList without preventing refresh
- Previous by thread: Re: Newbie Problem with Java Label
- Next by thread: Re: Newbie Problem with Java Label
- Index(es):