| 137 |
|
tblMods.setVisible(false); |
| 138 |
|
scrollMods.setViewportView(tblMods); |
| 139 |
|
|
| 140 |
< |
contents.setDividerLocation(550); |
| 140 |
> |
contents.setDividerLocation(Settings.getInstance().get("win_main_divloc", 550)); |
| 141 |
|
contents.setResizeWeight(0.4); |
| 142 |
|
|
| 143 |
|
if (Settings.getPlatform() == Platform.MACOS) { |
| 164 |
|
|
| 165 |
|
tblMods.addModSelectionListener(this); |
| 166 |
|
tblMods.addDownloadSizeListener(this); |
| 167 |
+ |
|
| 168 |
+ |
setSize(Settings.getInstance().get("win_main_width", 950), Settings.getInstance().get("win_main_height", 600)); |
| 169 |
+ |
setLocationRelativeTo(null); |
| 170 |
|
} |
| 171 |
|
|
| 172 |
|
private void initModTypeBox() { |
| 189 |
|
} |
| 190 |
|
|
| 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()); |
| 195 |
|
Settings.getInstance().serializeToFile(); |
| 196 |
|
} |
| 197 |
|
|