Loading images from a standard Java Swing library correctly
"Klaus Martinschitz" <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, I have written a default Java Swing library that uses images within a JPanel. The JPanel perfectly works showing all images correctly if I create a default run test program (plain Java project, no Netbeans platform modules). However, I want to use this Java library in Netbeans, so I create a wrapper module and at it to my suite. Of course, I have made the package containing the JPanel and the images (both are located inside the same package) public in the API Versioning section of my wrapper module. I know that Netbeans is build up modular, i.e. each module has its own classloader. When I want to load this Panel from within Netbeans, it can't find the images. How do I have to load images in a standard, default Java library source code if this should be used from a Netbeans module? I don't want to put the icons to a Netbeans module. I don't think that this can be the solution :-) I think I miss something with class loading. Thanks a lot for your help. Regards, klaus