Application icon.

This commit is contained in:
magenoxx 2010-12-04 15:07:10 +00:00
parent 7f65397ac5
commit 92dc74634b
2 changed files with 12 additions and 0 deletions

View file

@ -185,6 +185,18 @@ public class MageFrame extends javax.swing.JFrame {
e.printStackTrace();
}
filename = "/icon-mage.png";
try {
InputStream is = this.getClass().getResourceAsStream(filename);
if (is != null) {
BufferedImage image = ImageIO.read(is);
setIconImage(image);
}
} catch (IOException e) {
e.printStackTrace();
}
desktopPane.add(ArrowBuilder.getArrowsPanel(), JLayeredPane.DRAG_LAYER);
desktopPane.addComponentListener(new ComponentAdapter(){