Changeset 701 for AE/installer2/src/net/oni2/aeinstaller
- Timestamp:
- Mar 18, 2013, 1:44:07 AM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/AEInstaller.properties
r699 r701 1 1 appname=AE Installer 2 2 appversion=0.99 t2 appversion=0.99u -
AE/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r699 r701 138 138 scrollMods.setViewportView(tblMods); 139 139 140 contents.setDividerLocation( 550);140 contents.setDividerLocation(Settings.getInstance().get("win_main_divloc", 550)); 141 141 contents.setResizeWeight(0.4); 142 142 … … 165 165 tblMods.addModSelectionListener(this); 166 166 tblMods.addDownloadSizeListener(this); 167 168 setSize(Settings.getInstance().get("win_main_width", 950), Settings.getInstance().get("win_main_height", 600)); 169 setLocationRelativeTo(null); 167 170 } 168 171 … … 187 190 188 191 private void saveLocalData() { 192 Settings.getInstance().put("win_main_divloc", contents.getDividerLocation()); 193 Settings.getInstance().put("win_main_width", getWidth()); 194 Settings.getInstance().put("win_main_height", getHeight()); 189 195 Settings.getInstance().serializeToFile(); 190 196 } -
AE/installer2/src/net/oni2/aeinstaller/gui/corepackages/CorePackagesDialog.java
r658 r701 12 12 import javax.swing.KeyStroke; 13 13 14 import net.oni2.aeinstaller.backend.Settings; 14 15 import net.oni2.aeinstaller.backend.packages.Package; 15 16 import net.oni2.aeinstaller.gui.modtable.ModSelectionListener; … … 59 60 getRootPane().getActionMap().put("close", closeAction); 60 61 61 contents.setDividerLocation( 550);62 contents.setDividerLocation(Settings.getInstance().get("win_core_divloc", 550)); 62 63 contents.setResizeWeight(0.4); 63 64 … … 68 69 tblTools.addModSelectionListener(this); 69 70 71 setSize(Settings.getInstance().get("win_core_width", 950), Settings.getInstance().get("win_core_height", 600)); 70 72 setLocationRelativeTo(null); 71 73 } … … 75 77 pkgInfo.updateInfo(mod); 76 78 } 79 80 @SuppressWarnings("unused") 81 private void closing() { 82 Settings.getInstance().put("win_core_divloc", contents.getDividerLocation()); 83 Settings.getInstance().put("win_core_width", getWidth()); 84 Settings.getInstance().put("win_core_height", getHeight()); 85 } 77 86 } -
AE/installer2/src/net/oni2/aeinstaller/gui/corepackages/CorePackagesDialog.yml
r658 r701 7 7 iconImage: img.ae 8 8 modalityType: applicationModal 9 onWindowClosing: [closing] 9 10 content: 10 11 - JSplitPane(name=contents, orientation=horizontalSplit, continuousLayout=true): -
AE/installer2/src/net/oni2/aeinstaller/gui/toolmanager/ToolManager.java
r699 r701 73 73 getRootPane().getActionMap().put("close", closeAction); 74 74 75 contents.setDividerLocation( 550);75 contents.setDividerLocation(Settings.getInstance().get("win_tools_divloc", 550)); 76 76 contents.setResizeWeight(0.4); 77 77 … … 87 87 SwingJavaBuilder.getConfig().getResource("img.uninstall"))); 88 88 89 setSize(Settings.getInstance().get("win_tools_width", 950), Settings.getInstance().get("win_tools_height", 600)); 89 90 setLocationRelativeTo(null); 90 91 } … … 148 149 } 149 150 } 151 152 @SuppressWarnings("unused") 153 private void closing() { 154 Settings.getInstance().put("win_tools_divloc", contents.getDividerLocation()); 155 Settings.getInstance().put("win_tools_width", getWidth()); 156 Settings.getInstance().put("win_tools_height", getHeight()); 157 } 150 158 } -
AE/installer2/src/net/oni2/aeinstaller/gui/toolmanager/ToolManager.yml
r658 r701 7 7 iconImage: img.ae 8 8 modalityType: applicationModal 9 onWindowClosing: [closing] 9 10 content: 10 11 - JSplitPane(name=contents, orientation=horizontalSplit, continuousLayout=true):
Note:
See TracChangeset
for help on using the changeset viewer.