OSDN Git Service

Application icon for the main window.
authorSylvain Vedrenne <svedrenne@users.sourceforge.jp>
Thu, 19 Jan 2012 23:16:26 +0000 (00:16 +0100)
committerSylvain Vedrenne <svedrenne@users.sourceforge.jp>
Thu, 19 Jan 2012 23:16:26 +0000 (00:16 +0100)
src/classes/net/jankenpoi/sudokuki/ui/swing/Images.java
src/classes/net/jankenpoi/sudokuki/ui/swing/SwingView.java
src/resources/files/net/jankenpoi/sudokuki/resources/images/sudokuki_icon.png [new file with mode: 0644]

index 4ec2491..31d03a5 100644 (file)
@@ -28,5 +28,7 @@ public class Images {
        
        public final static ImageIcon ICON_APPLICATION_LOGO_SMALL = new ImageIcon(
                        UIResources.class.getResource("images/logo_small.png"));
-       
+
+       public final static ImageIcon ICON_APPLICATION = new ImageIcon(
+                       UIResources.class.getResource("images/sudokuki_icon.png"));
 }
index 33a07f1..fa17493 100644 (file)
@@ -45,6 +45,7 @@ public class SwingView extends GridView {
                                grid = new SwingGrid(SwingView.this, frame);
                                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                                frame.setResizable(false);
+                               frame.setIconImage(Images.ICON_APPLICATION.getImage());
                                
                                MenuBar menuBar = new MenuBar(frame, grid, SwingView.this);
                                levelMenu = menuBar.getLevelMenu();
diff --git a/src/resources/files/net/jankenpoi/sudokuki/resources/images/sudokuki_icon.png b/src/resources/files/net/jankenpoi/sudokuki/resources/images/sudokuki_icon.png
new file mode 100644 (file)
index 0000000..f57f17e
Binary files /dev/null and b/src/resources/files/net/jankenpoi/sudokuki/resources/images/sudokuki_icon.png differ