I would like to know how to convert from String
to ImageIcon
in java.
at the time of closing the program I save information in a txt, at the beginning I keep it well.
The problem is when I want to reread what is stored in the txt, I have a list in which it inserts everything it finds.
But I get an error because I send a parameter of type ImagenIcon
and what the txt returns is a String and I do not know how to convert.