ImageDescriptor.createFromFile [message #51491] |
Wed, 28 May 2003 10:14 |
Eclipse User |
|
|
|
Originally posted by: gg.decisionsoft.com
I'm trying to load a gif from my icons directory.
The problem I have is that I'm trying to use
ImageDescriptor.createFromFile yet the documentation for the method is
confusing, specifically the location parameter:
location - the class whose resource directory contain the file
How does a Class relate to a resource directory?
Geoff.
|
|
|
|
Re: ImageDescriptor.createFromFile [message #52234 is a reply to message #52154] |
Wed, 28 May 2003 17:54 |
Eclipse User |
|
|
|
Originally posted by: richkulp.NOSPAM.us.ibm.com
The phrase refers to the way resources should be loaded in Java. It uses
Class.getResourceAsStream(String filename). Look this up in Java and
you'll see how it works. This is for loading resources which are in your
class path (and jars).
|
|
|
Powered by
FUDForum. Page generated in 0.04293 seconds