forked from External/mage
Application icon.
This commit is contained in:
parent
7f65397ac5
commit
92dc74634b
2 changed files with 12 additions and 0 deletions
|
|
@ -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(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue