diff --git a/libPlg/src/plg/utils/PlgConstants.java b/libPlg/src/plg/utils/PlgConstants.java index d121278..c32e76b 100644 --- a/libPlg/src/plg/utils/PlgConstants.java +++ b/libPlg/src/plg/utils/PlgConstants.java @@ -15,7 +15,7 @@ public class PlgConstants { /** * Current version of libPlg */ - public static final String libPLG_VERSION = "2.0.5"; + public static final String libPLG_VERSION = "2.0.6"; /** * Signature of the libPlg (typically name and version number) diff --git a/plg/src/plg/gui/util/ImageUtils.java b/plg/src/plg/gui/util/ImageUtils.java index 301ddca..292a965 100644 --- a/plg/src/plg/gui/util/ImageUtils.java +++ b/plg/src/plg/gui/util/ImageUtils.java @@ -13,6 +13,8 @@ import javax.imageio.ImageIO; import javax.swing.ImageIcon; +import plg.utils.Logger; + /** * Collection of utilities methods to work with images. * @@ -51,8 +53,8 @@ public static ImageIcon loadImage(String imageFile, int width, int height) { public static ImageIcon loadImage(String imageFile) { try { return new ImageIcon(ImageIO.read(ClassLoader.getSystemResource(imageFile))); - } catch (IOException e) { - e.printStackTrace(); + } catch (Exception e) { + System.err.println("An error has been reported while loading a picture (but should be fine, `" + e.getMessage() + "')."); } return null; }