| 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; |
| 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 |
| 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; |
| 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 |
|
|
| 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); |
| 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 |
|
|