code: public static ImageIcon getImageIcon(String path) {
  		java.net.URL imgURL = IconLoader.class.getResource(path);
  		if (imgURL != null) {
  			return new ImageIcon(imgURL);
  		} else {
  			return null;
  		}
  	}
docs: Returns an ImageIcon, or null if the path was invalid.