Icon vs Image from a file

In Vaadin 7 I used Icon and Image alternatively because both were Resources.
Now, in Vaadin 14, I need to read some icons from file but I didn’t find the way.
A priori I don’t know if a standard icon should be used (e.g. the default) or an icon read from a file.
Icon and Image are not anymore Resource and Icon doesn’t extend Image or viceversa.
How can I solve that issue ?
Tks
Tullio

Hi,

In Vaadin 14, you can use a component as an icon for example setIcon in Button.

So you can use a Component (image or icon), I think it should be ok or maybe there is a usecase I don’t remember :slight_smile:

Jean-Christophe Gueriaud:
Hi,

In Vaadin 14, you can use a component as an icon for example setIcon in Button.

So you can use a Component (image or icon), I think it should be ok or maybe there is a usecase I don’t remember :slight_smile:

Tks