Skip to content

Commit

Permalink
wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
cubewhy committed Jan 13, 2024
1 parent a8f2df5 commit f4eb1ba
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ private void initGui() {
p2.add(labelRam);
panelVM.add(p2);

JPanel p3 = new JPanel();
p3.add(new JLabel(f.getString("gui.settings.jvm.wrapper")));
JTextField wrapperInput = getAutoSaveTextField("wrapper", config.getValue("wrapper").getAsJsonPrimitive(), config.getConfig());
p3.add(wrapperInput);
panelVM.add(p3);

claim("jre", panelVM);
claim("ram");
claim("vm-args");
Expand Down Expand Up @@ -124,6 +130,9 @@ private void addUnclaimed(JPanel basePanel, JsonObject json) {
basePanel.add(subPanel);
addUnclaimed(subPanel, s.getValue().getAsJsonObject());
}
if (s.getValue().isJsonArray()) {
// TODO valueList
}
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/languages/launcher.properties
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,5 @@ gui.settings.jvm.jre.unset=Default
gui.settings.jvm.jre.success=Java executable has been set to %s
gui.settings.jvm.jre.unset.success=[Java executable] Restoring default values successfully!
gui.settings.jvm.jre.unset.confirm=Are you sure you want to use the default JRE?
gui.settings.unclaimed=Others
gui.settings.unclaimed=Others
gui.settings.jvm.wrapper=Wrapper:
3 changes: 2 additions & 1 deletion src/main/resources/languages/launcher_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,5 @@ gui.settings.jvm.jre.unset=Default
gui.settings.jvm.jre.success=Java executable has been set to %s
gui.settings.jvm.jre.unset.success=[Java executable] Restoring default values successfully!
gui.settings.jvm.jre.unset.confirm=Are you sure you want to use the default JRE?
gui.settings.unclaimed=Others
gui.settings.unclaimed=Others
gui.settings.jvm.wrapper=Wrapper:
3 changes: 2 additions & 1 deletion src/main/resources/languages/launcher_zh.properties
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@ gui.settings.jvm.jre.unset=使用默认Java
gui.settings.jvm.jre.success=Java可执行文件已设置为%s
gui.settings.jvm.jre.unset.success=[Java可执行文件] 恢复默认值成功!
gui.settings.jvm.jre.unset.confirm=确认使用默认的JRE?
gui.settings.unclaimed=其他配置
gui.settings.unclaimed=其他配置
gui.settings.jvm.wrapper=包装器:

0 comments on commit f4eb1ba

Please sign in to comment.