public static void setIconImage ( final String resourceName , final Window window ) throws IOException { final InputStream isLogo = ClassExtensions . getResourceAsStream ( resourceName ) ; final BufferedImage biLogo = ImageIO . read ( isLogo ) ; window . setIconImage ( biLogo ) ; }
Sets the icon image from the given resource name and add it to the given window object .