Changeset 651 for AE/installer2/src/net/oni2/aeinstaller
- Timestamp:
- Jan 25, 2013, 3:03:29 PM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller
- Files:
-
- 8 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/AEInstaller.properties
r648 r651 1 1 appname=AE Installer 2 2 appversion=0.99 e2 appversion=0.99f -
AE/installer2/src/net/oni2/aeinstaller/AEInstaller2.java
r649 r651 6 6 import java.io.IOException; 7 7 import java.io.PrintStream; 8 import java.lang.reflect.InvocationTargetException; 9 import java.lang.reflect.Method; 10 import java.net.MalformedURLException; 8 11 import java.net.URL; 12 import java.net.URLClassLoader; 9 13 import java.util.ResourceBundle; 10 14 … … 36 40 public class AEInstaller2 { 37 41 38 private static ResourceBundle imagesBundle = ResourceBundle 39 .getBundle("net.oni2.aeinstaller.Images"); 40 private static ResourceBundle basicBundle = ResourceBundle 41 .getBundle("net.oni2.aeinstaller.AEInstaller"); 42 private static ResourceBundle globalBundle = ResourceBundle 43 .getBundle("net.oni2.aeinstaller.localization.Global"); 42 private static ResourceBundle imagesBundle; 43 private static ResourceBundle basicBundle; 44 private static ResourceBundle globalBundle; 44 45 45 46 private static Application app = null; … … 58 59 } catch (IOException e) { 59 60 e.printStackTrace(); 61 } 62 } 63 64 private static void addClassPath(File dir) { 65 try { 66 URL u = dir.toURI().toURL(); 67 URLClassLoader urlClassLoader = (URLClassLoader) ClassLoader 68 .getSystemClassLoader(); 69 Class<URLClassLoader> urlClass = URLClassLoader.class; 70 Method method = urlClass.getDeclaredMethod("addURL", 71 new Class[] { URL.class }); 72 method.setAccessible(true); 73 method.invoke(urlClassLoader, new Object[] { u }); 74 } catch (MalformedURLException e) { 75 } catch (SecurityException e) { 76 } catch (NoSuchMethodException e) { 77 } catch (IllegalArgumentException e) { 78 } catch (IllegalAccessException e) { 79 } catch (InvocationTargetException e) { 60 80 } 61 81 } … … 95 115 Settings.setDebug(debug); 96 116 Settings.getInstance().setNoCacheUpdateMode(noCacheUpdate); 117 118 File localesDir = new File(Paths.getInstallerPath(), "locales"); 119 if (localesDir.isDirectory()) 120 addClassPath(localesDir); 121 imagesBundle = ResourceBundle.getBundle("net.oni2.aeinstaller.Images"); 122 basicBundle = ResourceBundle 123 .getBundle("net.oni2.aeinstaller.AEInstaller"); 124 globalBundle = ResourceBundle 125 .getBundle("net.oni2.aeinstaller.localization.Global"); 97 126 98 127 SwingJavaBuilder.getConfig().addResourceBundle(imagesBundle); -
AE/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r649 r651 130 130 131 131 setSize(getWidth() + 150, getHeight()); 132 contents.setDividerLocation(5 00);132 contents.setDividerLocation(550); 133 133 contents.setResizeWeight(0.4); 134 134 -
AE/installer2/src/net/oni2/aeinstaller/gui/modtable/ModTableModel.java
r648 r651 129 129 switch (colNum) { 130 130 case 0: 131 w = 70; 132 col.setPreferredWidth(w); 133 col.setMinWidth(w); 134 col.setMaxWidth(w); 135 break; 136 case 1: 137 col.setPreferredWidth(150); 138 break; 139 case 2: 131 140 w = 60; 132 141 col.setPreferredWidth(w); … … 134 143 col.setMaxWidth(w); 135 144 break; 136 case 1:137 col.setPreferredWidth(150);138 break;139 case 2:140 w = 55;141 col.setPreferredWidth(w);142 col.setMinWidth(w);143 col.setMaxWidth(w);144 break;145 145 case 3: 146 146 col.setPreferredWidth(90); 147 147 break; 148 148 case 4: 149 w = 55;150 col.setPreferredWidth(w); 151 col.setMinWidth(w); 152 col.setMaxWidth(w); 153 break; 154 case 5: 155 w = 95;149 w = 60; 150 col.setPreferredWidth(w); 151 col.setMinWidth(w); 152 col.setMaxWidth(w); 153 break; 154 case 5: 155 w = 115; 156 156 col.setPreferredWidth(w); 157 157 col.setMinWidth(w);
Note:
See TracChangeset
for help on using the changeset viewer.