I have the following .ico image, read using image4j library:
List<BufferedImage> BI = ICODecoder.read("aImage.ico");
Next I want to set this image as a frame icon:
myFrame.setIconImage((Image)BI);
Error: java.lang.ClassCastException
I need to convert the type List<\BufferedImage> to the type Image. Any help would be appreciated.