app/src/main/java/org/sakaiproject/nakamura/app/LaunchNakamura.java
protected ImageIcon createImageIcon(String path, String description) {
    java.net.URL imgURL = getClass().getResource(path);
    if (imgURL != null) {
      return new ImageIcon(imgURL, description);
    } else {
      System.err.println("Couldn't find file: " + path);
      return null;
    }
  }
protected ImageIcon createImageIcon(String path, String description) {
    java.net.URL imgURL = getClass().getResource(path);
    if (imgURL != null) {
      return new ImageIcon(imgURL, description);
    } else {
      System.err.println("Couldn't find file: " + path);
      return null;
    }
  }
protected ImageIcon createImageIcon ( String path , String description ) { java . net . URL imgURL = getClass ( ) . getResource ( path ) ; if ( imgURL != null ) { return new ImageIcon ( imgURL , description ) ; } else { System . err . println ( "Couldn't find file: " + path ) ; return null ; } }
Returns an ImageIcon, or null if the path was invalid.

@param path
The path to the icon.
@param description
The description of the icon.
@return the newly created ImageIcon or null.
Returns an ImageIcon or null if the path was invalid .