using v2.3
I want to use custom icons for buttons.
The test icon I put into: /META-INF/resources/icons/google_icon.png
Now, how to align that icon to a button?
I tried:
StreamResource iconResource = new StreamResource(“google_icon.svg”,
() → getClass().getResourceAsStream("/META-INF/resources/icons/google_icon.png"));
SvgIcon newIcon = new SvgIcon(iconResource,“google_icon.png”);
navBtn.setIcon(newIcon);
nothing happens, no icon no error
Also tried to use an Image… but also no result.
Using an image I just saw a questionmark in the button,
but the source could not be found,
KR
Roland