+ /**
+ * Loads an image from the class path.
+ *
+ * @param resourceName
+ * The name of the image
+ * @return The image, or <code>null</code> if no image was found
+ */
+ public static Image loadImage(String resourceName) {
+ ImageIcon imageIcon = (ImageIcon) loadIcon(resourceName);
+ if (imageIcon == null) {
+ return null;
+ }
+ return imageIcon.getImage();
+ }
+