Java Utililty Methods ImageIcon Load

List of utility methods to do ImageIcon Load

Description

The list of methods to do ImageIcon Load are organized into topic(s).

Method

ImageIconloadResourceImageIcon(String imageName)
load Resource Image Icon
URL url = Main.class.getResource("resources/images/" + imageName);
return new ImageIcon(url);
ImageIconreadImageIconFromFile(File srcFile)
Read the image from the given file to an icon image.
try {
    return new ImageIcon(ImageIO.read(srcFile));
} catch (Exception e) {
return null;