Write to to resources location from another module
Mark Wade <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I'm loading images using ImageUtilities.loadImage(String resourceID) in
a viewer module. In a separate editor module I'm trying to use a
filechooser dialog that can be used to select an image file which would
then be copied to that resource location. I tried to use
System.getProperty("user.dir") but that is not a resource and so returns
null.
Can I get that particular module's class loader and get a path to that
resource location so that I can write an image file to it from outside
that module?
-- Mark Wade