Make java dir text field text clearer

This commit is contained in:
huangyuhui
2017-02-23 13:31:18 +08:00
parent d1c4dee7f7
commit a6768c361f
3 changed files with 2 additions and 15 deletions

View File

@@ -26,7 +26,7 @@
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="tabVersionEdit" alignment="1" pref="766" max="32767" attributes="0"/>
<Component id="tabVersionEdit" alignment="1" max="32767" attributes="0"/>
<Group type="102" alignment="1" attributes="0">
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
<Component id="btnMakeLaunchScript" min="-2" max="-2" attributes="0"/>

View File

@@ -1147,7 +1147,7 @@ public final class GameSettingsPanel extends RepaintPage implements DropTargetLi
if (idx != -1) {
Java j = Java.JAVA.get(idx);
txtJavaDir.setText(j.getHome() == null ? Settings.getLastProfile().getSelectedVersionSetting().getSettingsJavaDir() : j.getJava());
txtJavaDir.setEnabled(idx == 1);
txtJavaDir.setEditable(idx == 1);
if (!isLoading)
Settings.getLastProfile().getSelectedVersionSetting().setJava(j);
}