private static ImageIcon loadSmall(String file, String desc) {
URL url = ClassLoader.getSystemResource(file);
if (url == null) {
- ExceptionHandler.handleErrorCondition("ERROR: Couldn't find file: " + file);
+ Application.getExceptionHandler().handleErrorCondition("ERROR: Couldn't find file: " + file);
return null;
}
return new ImageIcon(url, desc);
bi = ImageIO.read(url);
bi2 = ImageIO.read(url); // How the fsck can one duplicate a BufferedImage???
} catch (IOException e) {
- ExceptionHandler.handleErrorCondition("ERROR: Couldn't read file: " + file, e);
+ Application.getExceptionHandler().handleErrorCondition("ERROR: Couldn't read file: " + file, e);
return new ImageIcon[] { null, null };
}
return icons;
} else {
- ExceptionHandler.handleErrorCondition("ERROR: Couldn't find file: " + file);
+ Application.getExceptionHandler().handleErrorCondition("ERROR: Couldn't find file: " + file);
return new ImageIcon[] { null, null };
}
}