May I ask for help with the way how to include custom image icons for a toolbar in a standalone workspace access plugin extension?
Unfortunately I cannot find any documentation to the "ro.sync.ui.Icons.getIcon(String iconKey)" mentioned in another post here ([topic12826.html]).
I am (naively?) trying something like to following line to put an image into a button:
Code: Select all
Button btn = new Button("text",new ImageIcon("/main/resources/my_image.png"));
It doesn't work however. Do I need to tell Maven somehow about copying the image into the final "jar" file?
And how would I proceed with an alternative high resolution image for Retina monitors (or with dark mode images)?
Sorry for perhaps asking the obvious; I am still a newbie. Any hints are very welcome.
Heidelberg University Library