public static void setIcons(Window frame) {
        List<Image> icons = new LinkedList<>();

        for (String size : ICON_SIZES) {
            try {
                Image img = ImageIO.read(Components.class.getResourceAsStream("/ch/zhaw/iamp/rct/ui/" + size + ".png"));
                icons.add(img);
            } catch (IOException ex) {
                throw new IllegalStateException("Could not load the application icons: " + ex.getMessage());
            }
        }

        frame.setIconImages(icons);
    }