Changeset 772 for java/installer2/src/net/oni2
- Timestamp:
- Apr 1, 2013, 2:12:20 AM (12 years ago)
- Location:
- java/installer2/src/net/oni2/aeinstaller
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/AEInstaller.properties
r751 r772 1 1 appname=AE Installer 2 2 appversion= 0.99y2 appversion=.00 -
java/installer2/src/net/oni2/aeinstaller/AEInstaller2.java
r767 r772 179 179 JFrame.setDefaultLookAndFeelDecorated(true); 180 180 181 System.out.println(basicBundle.getString("appname") + " "181 System.out.println(basicBundle.getString("appname") 182 182 + basicBundle.getString("appversion")); 183 183 System.out.println("JarPath: " + Paths.getInstallerPath()); -
java/installer2/src/net/oni2/aeinstaller/backend/oni/OniLauncher.java
r767 r772 22 22 case LINUX: 23 23 exe = new File(Paths.getEditionBasePath(), "Oni.exe"); 24 if (exe.exists()) 25 return exe; 26 else 27 throw new FileNotFoundException( 28 "Oni's executable was not found"); 24 break; 29 25 case MACOS: 30 26 exe = new File("./Oni.app/Contents/MacOS/Oni"); 31 if (new File(Paths.getEditionBasePath(), 32 "Oni.app/Contents/MacOS/Oni").exists()) 33 return exe; 34 else 35 throw new FileNotFoundException( 36 "Oni's executable was not found"); 27 break; 37 28 default: 38 29 } 39 return null; 30 if (exe.exists()) 31 return exe; 32 else 33 throw new FileNotFoundException( 34 "Oni's executable was not found"); 40 35 } 41 36 -
java/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r767 r772 136 136 public MainWin() { 137 137 this.setTitle(SwingJavaBuilder.getConfig().getResource("appname") 138 + " - v"139 138 + SwingJavaBuilder.getConfig().getResource("appversion")); 140 139 … … 144 143 145 144 contents.setDividerLocation(SettingsManager.getInstance().get( 146 "win_main_divloc", 550));145 "win_main_divloc", 700)); 147 146 contents.setResizeWeight(0.4); 148 147 … … 172 171 tblMods.addDownloadSizeListener(this); 173 172 174 setSize(SettingsManager.getInstance().get("win_main_width", 950),173 setSize(SettingsManager.getInstance().get("win_main_width", 1050), 175 174 SettingsManager.getInstance().get("win_main_height", 600)); 176 175 setLocationRelativeTo(null); -
java/installer2/src/net/oni2/aeinstaller/gui/about/AboutDialog.java
r755 r772 27 27 private BuildResult result = SwingJavaBuilder.build(this, bundle); 28 28 29 private JLabel lblApp version;29 private JLabel lblAppname; 30 30 private HTMLLinkLabel txtLinks; 31 31 private HTMLLinkLabel lblAE; … … 35 35 */ 36 36 public AboutDialog() { 37 lblApp version.setText("v"37 lblAppname.setText(SwingJavaBuilder.getConfig().getResource("appname") 38 38 + SwingJavaBuilder.getConfig().getResource("appversion")); 39 39 -
java/installer2/src/net/oni2/aeinstaller/gui/about/AboutDialog.yml
r755 r772 10 10 - JButton(name=btnClose, text=btnClose, onAction=[dispose]) 11 11 - JPanel(name=panAEI): 12 - JLabel(name=lblAppname, text=appname) 13 - JLabel(name=lblAppversion) 12 - JLabel(name=lblAppname) 14 13 - HTMLLinkLabel(name=lblAE) 15 14 - JLabel(name=lblAEIBy, text=AEIBy) 16 15 - MigLayout: | 17 16 [grow] 18 lblAppname< ,lblAppversion<[min]19 lblAE 20 lblAEIBy 17 lblAppname< [min] 18 lblAE [min] 19 lblAEIBy [min] 21 20 - JPanel(name=panAE, groupTitle=panAE): 22 21 - JLabel(name=lblNames, text=AENames, horizontalAlignment=right)
Note:
See TracChangeset
for help on using the changeset viewer.