Re: Loading images from a standard Java Swing library correctly

Eduard <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
It is impossible to guess what is going on.
What code did you use in the library to make teh panel load the images?
What exception do you get when using the library as NB module?
Cheers
Eduard de Jong

Klaus Martinschitz wrote:
> 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
>
>
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.