Can't find image to load to label/scrollpane

Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Can't find image to load to label/scrollpane

Postby Bach » Sat Jun 11, 2005 9:40 am

Hi,
I created an label/scrollPane to hold an image.
I clicked on the icon property to load the image.
A select Image popup window appeared
But it doesn't list my JPeg file anywhere for me to select.

I can see my JPeg file in the Eclipse's Package explorer though.

Is there something else I need to do?

Thanks
Bach
 

Re: Can't find image to load to label/scrollpane

Postby Eric Clayberg » Sat Jun 11, 2005 4:08 pm

Bach wrote:I created an label/scrollPane to hold an image.
I clicked on the icon property to load the image.
A select Image popup window appeared
But it doesn't list my JPeg file anywhere for me to select.

Your image needs to be located relative to your class or your package root (your project's source folder).
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby Guest » Sat Jun 11, 2005 5:44 pm

Eric, to the rescue again. Thanks eric.

To make sure, I put a copy of my JPeg file into all of the source folder and still not able to see it.

I sent you aan email with some screen print of where I put my images.
Guest
 

Postby Eric Clayberg » Sun Jun 12, 2005 5:40 am

Anonymous wrote:To make sure, I put a copy of my JPeg file into all of the source folder and still not able to see it.

Change the file extension to "JPG" rather than "JPEG".
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to Swing Designer

Who is online

Users browsing this forum: No registered users and 1 guest