Changeset 627 for AE/installer2/src/net/oni2
- Timestamp:
- Jan 18, 2013, 12:23:44 AM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/AEInstaller.properties
r626 r627 1 1 appname=AE Installer 2 2 appversion=0.8 62 appversion=0.87 3 3 4 4 invalidPath.title=Wrong directory -
AE/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r625 r627 1 1 package net.oni2.aeinstaller.gui; 2 2 3 import java.awt.BorderLayout; 3 4 import java.awt.Desktop; 4 5 import java.awt.event.ActionEvent; 5 6 import java.awt.event.ActionListener; 7 import java.awt.event.ItemEvent; 8 import java.awt.event.ItemListener; 6 9 import java.awt.event.MouseAdapter; 7 10 import java.awt.event.MouseEvent; … … 22 25 import javax.swing.ImageIcon; 23 26 import javax.swing.JButton; 27 import javax.swing.JCheckBox; 24 28 import javax.swing.JComboBox; 25 29 import javax.swing.JComponent; … … 30 34 import javax.swing.JMenuItem; 31 35 import javax.swing.JOptionPane; 36 import javax.swing.JPanel; 32 37 import javax.swing.JPopupMenu; 33 38 import javax.swing.JSplitPane; … … 304 309 } 305 310 if (size > 0) { 311 // Build info dialog content 306 312 String message = "<html>"; 307 313 message += String.format( … … 309 315 strTools, SizeFormatter.format(size, 3)); 310 316 message += "</html>"; 311 int res = JOptionPane.showConfirmDialog(this, message, 317 318 JPanel pan = new JPanel(); 319 pan.setLayout(new BorderLayout(0, 20)); 320 JLabel lab = new JLabel(message); 321 pan.add(lab, BorderLayout.CENTER); 322 JCheckBox checkFutureUpdates = new JCheckBox( 323 bundle.getString("checkOnStartup.text")); 324 checkFutureUpdates.setSelected(Settings.getInstance().get( 325 "notifyupdates", true)); 326 checkFutureUpdates.addItemListener(new ItemListener() { 327 @Override 328 public void itemStateChanged(ItemEvent evt) { 329 Settings.getInstance().put("notifyupdates", 330 evt.getStateChange() == ItemEvent.SELECTED); 331 } 332 }); 333 pan.add(checkFutureUpdates, BorderLayout.SOUTH); 334 335 // Show dialog 336 int res = JOptionPane.showConfirmDialog(this, pan, 312 337 bundle.getString("updatesAvailable.title"), 313 338 JOptionPane.YES_NO_OPTION, -
AE/installer2/src/net/oni2/aeinstaller/gui/MainWin.properties
r623 r627 57 57 updatesAvailable.title=Updates available 58 58 updatesAvailable.text=The following mods and tools have newer versions on the Depot.<br>Mods:<br>%s<br>Tools:<br>%s<br><br>Size of files to download is %s.<br>Update now? 59 checkOnStartup.text=Check for updates at startup 59 60 60 61 noOniSplit.title=OniSplit not available
Note:
See TracChangeset
for help on using the changeset viewer.