src/neon/utils/GeneralUtils.java
/**
   * Loads an image from a file.
   *
   * @param path the path of the image file
   * @return a BufferedImage object or null if an exception is thrown
   */
Loads an image from a file.
@param path the path of the image file
@return a BufferedImage object or null if an exception is thrown
Loads an image from a file . @param path the path of the image file @return a BufferedImage object or null if an exception is thrown
public static BufferedImage loadImage(String path) {
    try {
      return ImageIO.read(new File(path));
    } catch (Exception ex) {
      ex.printStackTrace();
      return null;
    }
  }
public static BufferedImage loadImage ( String path ) { try { return ImageIO . read ( new File ( path ) ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; return null ; } }
Loads an image from a file.
Loads an image from a file .