public static Object makeIcon (Class<?> baseClass, String gifFile)

Creates and returns a UIDefault.LazyValue that loads an image. The returned value is an implementation of UIDefaults.LazyValue. When createValue is invoked on the returned object, the image is loaded. If the image is non-null, it is then wrapped in an Icon that implements UIResource. The image is loaded using Class.getResourceAsStream(gifFile).

This method does not check the arguments in any way. It is strongly recommended that non-null values are supplied else exceptions may occur when createValue is invoked on the returned object.

Parameters:
baseClass    Class used to load the resource
gifFile    path to the image to load

Returns:  a UIDefaults.LazyValue; when resolved the LazyValue loads the specified image

See also:
UIDefaults.LazyValue, Icon, Class.getResourceAsStream(String)