Class ImageIconItemInfoUtils

java.lang.Object
org.gvsig.gui.beans.swing.jComboBoxWithImageIconItems.ImageIconItemInfoUtils

public class ImageIconItemInfoUtils extends Object
This class has an static method that is an utility to load an image icon
Author:
Pablo Piqueras Bartolomé (p_queras@hotmail.com)
  • Constructor Details

    • ImageIconItemInfoUtils

      public ImageIconItemInfoUtils()
  • Method Details

    • createImageIcon

      public static ImageIcon createImageIcon(Class class_Reference, String path)
      Returns an ImageIcon, or null if the path from class reference was invalid.
      Parameters:
      class_Reference - A reference to a class which path will be the base to find the resource of the 'path' param
      path - Path to the image to load
      Returns:
      javax.swing.ImageIcon