Universal Robots Forum

Adding logo to URCAP

Hi everyone,
i am trying to add our company logo to the URCAP icon. I tired using image tage in HTML file, but no success. Does anyone know how to do this? I appreciate the help in advance.
Thanks

basically you need to mark the ICON with an ID and later on load an image for that ID in your urcap file.

private static final String LOGO_KEY = "logo";
@Img(id = LOGO_KEY)
private ImgComponent logoImg;
		
	
	@Override
	public void openView() {
		try {
			logoImg.setImage(ImageIO.read(getClass().getResource("icon.png")));
		} catch (IOException e) {
			e.printStackTrace();
		}
....