In vaadin 14.1 how can I get my images from the classpath ?
In vaadin 8 I used ThemeResource but is not available anymore ?
How can I substitute it ?
Tks
Image myImage = new Image("img/flower.jpg", "A flower")
If you have trouble finding the correct places to store the images, see the [resource cheat sheet]
(https://vaadin.com/docs/v14/flow/importing-dependencies/tutorial-ways-of-importing.html#resource-cheat-sheet)
Kaspar Scherrer:
Image myImage = new Image("img/flower.jpg", "A flower")
If you have trouble finding the correct places to store the images, see the [resource cheat sheet]
(https://vaadin.com/docs/v14/flow/importing-dependencies/tutorial-ways-of-importing.html#resource-cheat-sheet)
thanks for your helpful response. All questions answered