ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/java/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
(Generate patch)

Comparing AE/installer2/src/net/oni2/aeinstaller/gui/MainWin.java (file contents):
Revision 669 by alloc, Sun Feb 10 01:36:15 2013 UTC vs.
Revision 671 by alloc, Sun Feb 10 17:58:13 2013 UTC

# Line 19 | Line 19 | import java.util.TreeSet;
19   import java.util.Vector;
20  
21   import javax.swing.AbstractAction;
22 import javax.swing.Icon;
22   import javax.swing.ImageIcon;
23   import javax.swing.JButton;
24   import javax.swing.JCheckBox;
# Line 41 | Line 40 | import javax.swing.filechooser.FileFilte
40  
41   import net.oni2.aeinstaller.AEInstaller2;
42   import net.oni2.aeinstaller.backend.AppExecution;
43 + import net.oni2.aeinstaller.backend.ImageResizer;
44   import net.oni2.aeinstaller.backend.Paths;
45   import net.oni2.aeinstaller.backend.Settings;
46   import net.oni2.aeinstaller.backend.Settings.Platform;
# Line 450 | Line 450 | public class MainWin extends JFrame impl
450                                  }
451                                  params.add(exe.getPath());
452                                  final File wd = m.getWorkingDir();
453 <                                Icon ico = null;
453 >                                ImageIcon ico = null;
454                                  if (m.getIconFile() != null && m.getIconFile().exists()) {
455                                          ico = new ImageIcon(m.getIconFile().getPath());
456                                  } else {
# Line 458 | Line 458 | public class MainWin extends JFrame impl
458                                                          .getResource("images/transparent.png");
459                                          ico = new ImageIcon(icon);
460                                  }
461 +                                ico = ImageResizer.resizeImage(ico, 32, 32);
462                                  item.setAction(new AbstractAction(m.getName(), ico) {
463                                          private static final long serialVersionUID = 1L;
464  

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)