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 672 by alloc, Sat Feb 23 17:40:47 2013 UTC vs.
Revision 673 by alloc, Mon Feb 25 16:52:49 2013 UTC

# Line 59 | Line 59 | import net.oni2.aeinstaller.backend.pack
59   import net.oni2.aeinstaller.gui.about.AboutDialog;
60   import net.oni2.aeinstaller.gui.corepackages.CorePackagesDialog;
61   import net.oni2.aeinstaller.gui.downloadwindow.Downloader;
62 < import net.oni2.aeinstaller.gui.modtable.DownloadSizeListener;
62 > import net.oni2.aeinstaller.gui.modtable.ModInstallSelectionListener;
63   import net.oni2.aeinstaller.gui.modtable.EApplyFilterTo;
64   import net.oni2.aeinstaller.gui.modtable.ModSelectionListener;
65   import net.oni2.aeinstaller.gui.modtable.ModTable;
# Line 79 | Line 79 | import org.simplericity.macify.eawt.Appl
79   * @author Christian Illy
80   */
81   public class MainWin extends JFrame implements ApplicationListener,
82 <                DownloadSizeListener, ModSelectionListener {
82 >                ModInstallSelectionListener, ModSelectionListener {
83          private static final long serialVersionUID = -4027395051382659650L;
84  
85          private ResourceBundle bundle = ResourceBundle
# Line 102 | Line 102 | public class MainWin extends JFrame impl
102          private JComboBox cmbShowFilterTo;
103          private JScrollPane scrollMods;
104          private ModTable tblMods;
105 +        private JLabel lblSelectedModsVal;
106          private JLabel lblDownloadSizeVal;
107  
108          private PackageInfoBox pkgInfo;
# Line 146 | Line 147 | public class MainWin extends JFrame impl
147                  ToolTipManager.sharedInstance().setInitialDelay(250);
148  
149                  getRootPane().setDefaultButton(btnInstall);
150 +                lblSelectedModsVal.setText("0");
151                  lblDownloadSizeVal.setText(SizeFormatter.format(0, 2));
152                  radAll.setSelected(true);
153  
# Line 491 | Line 493 | public class MainWin extends JFrame impl
493                                                                                  bundle.getString("jreNotFound.title"),
494                                                                                  JOptionPane.ERROR_MESSAGE);
495                                                          if (ex.getMessage().contains(".NET"))
496 <                                                                JOptionPane.showMessageDialog(null,
496 >                                                                JOptionPane.showMessageDialog(
497 >                                                                                null,
498                                                                                  bundle.getString("dotNetNotFound.text"),
499                                                                                  bundle.getString("dotNetNotFound.title"),
500                                                                                  JOptionPane.ERROR_MESSAGE);
# Line 781 | Line 784 | public class MainWin extends JFrame impl
784          }
785  
786          @Override
787 <        public void downloadSizeChanged(int newSize) {
787 >        public void modInstallSelectionChanged(int newSize, int newCount) {
788 >                lblSelectedModsVal.setText(String.valueOf(newCount));
789                  lblDownloadSizeVal.setText(SizeFormatter.format(newSize, 2));
790          }
791  

Diff Legend

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