Changeset 646 for AE/installer2/src/net/oni2/aeinstaller/gui/toolmanager
- Timestamp:
- Jan 23, 2013, 12:43:13 PM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller/gui/toolmanager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/gui/toolmanager/ToolManager.java
r641 r646 4 4 import java.awt.event.ActionEvent; 5 5 import java.awt.event.KeyEvent; 6 import java.text.SimpleDateFormat; 7 import java.util.Date; 6 8 import java.util.ResourceBundle; 7 9 import java.util.TreeMap; … … 55 57 private JLabel lblPlatformVal; 56 58 private JLabel lblPackageNumberVal; 59 private JLabel lblVersionNumberVal; 60 private JLabel lblLastChangeVal; 57 61 private HTMLLinkLabel lblDescriptionVal; 58 62 private JLabel lblDownloadSizeVal; … … 62 66 private Icon icoInstall = null; 63 67 private Icon icoUninstall = null; 68 69 private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); 64 70 65 71 /** … … 100 106 icoUninstall = new ImageIcon(getClass().getResource( 101 107 SwingJavaBuilder.getConfig().getResource("img.uninstall"))); 102 108 103 109 setLocationRelativeTo(null); 104 110 } … … 127 133 toDownload.add(theMod); 128 134 129 Downloader dl = new Downloader(toDownload );135 Downloader dl = new Downloader(toDownload, null); 130 136 try { 131 137 dl.setVisible(true); … … 152 158 lblPlatformVal.setText(""); 153 159 lblPackageNumberVal.setText(""); 160 lblVersionNumberVal.setText(""); 161 lblLastChangeVal.setText(""); 154 162 lblDownloadSizeVal.setText(""); 155 163 btnInstall.setEnabled(false); … … 163 171 lblPlatformVal.setText(m.getPlatform().toString()); 164 172 lblPackageNumberVal.setText(m.getPackageNumberString()); 173 lblVersionNumberVal.setText(m.getVersion()); 174 if (m.getFile() != null) 175 lblLastChangeVal.setText(sdf.format(new Date(m.getFile() 176 .getTimestamp() * 1000))); 165 177 lblDownloadSizeVal.setText(SizeFormatter.format(m.getZipSize(), 3)); 166 178 btnInstall.setEnabled(true); -
AE/installer2/src/net/oni2/aeinstaller/gui/toolmanager/ToolManager.yml
r641 r646 24 24 - JLabel(name=lblPackageNumber, text=lblPackageNumber.text) 25 25 - JLabel(name=lblPackageNumberVal) 26 - JLabel(name=lblVersionNumber, text=lblVersionNumber.text) 27 - JLabel(name=lblVersionNumberVal) 28 - JLabel(name=lblLastChange, text=lblLastChange.text) 29 - JLabel(name=lblLastChangeVal) 26 30 - JLabel(name=lblDescription, text=lblDescription.text) 27 31 - JScrollPane(name=scrollDescription, vScrollBar=always, hScrollBar=asNeeded): … … 36 40 >lblPlatform lblPlatformVal [min] 37 41 >lblPackageNumber lblPackageNumberVal [min] 42 >lblVersionNumber lblVersionNumberVal [min] 43 >lblLastChange lblLastChangeVal [min] 38 44 >^lblDescription scrollDescription [grow] 39 45 >lblDownloadSize lblDownloadSizeVal [min]
Note:
See TracChangeset
for help on using the changeset viewer.