Add JDK path selector

This commit is contained in:
王鹏
2026-10-09 12:39:01 +08:00
parent d524d160f6
commit 9981ad1368
2 changed files with 2 additions and 1 deletions

View File

@@ -256,6 +256,7 @@ class DeployWorkbench(tk.Tk):
ttk.Label(jdk_row, text="JDK", width=12, style="CardTitle.TLabel").pack(side=tk.LEFT)
ttk.Combobox(jdk_row, textvariable=self.jdk_version, values=("8", "11", "17", "21"), state="readonly", width=8).pack(side=tk.LEFT)
ttk.Button(jdk_row, text="\u5b89\u88c5", command=self.install_jdk_async).pack(side=tk.LEFT, padx=(8, 0))
ttk.Button(jdk_row, text="\u9009\u62e9\u8def\u5f84", command=lambda: self.choose_tool_path("JDK")).pack(side=tk.LEFT, padx=(8, 0))
ttk.Button(jdk_row, text="\u52a0\u5165 PATH", command=lambda: self.add_tool_to_path("JDK")).pack(side=tk.LEFT, padx=(8, 0))
ttk.Label(jdk_row, textvariable=self.jdk_reason, style="Muted.TLabel").pack(side=tk.LEFT, fill=tk.X, expand=True, padx=(10, 0))