powered by Jive Software

Displaying images in a sparkplug

Hi

In a sparkplug that I developed (a new tab) I require to display icons or images. However I still cannot figure out where I need to place the image files and specify the path in the code. I wouldn’'t want to add them in the Spark resources directory and recompile the whole lot. I want the image files to be added to the sparkplugin jar file and be able to read them within the sparkplug environment.

Thanks tons

If the images are in your plugin’'s jar file, you should be able to get them with ClassLoader.getSystemResource(). Give the path relative to the root folder of your plugin.