private void loadUserPrefVariables() {
        Variables.setSetting("launch.UseXmxArgument", "true");
        Variables.setSetting("launch.XmxArgument", MemoryField.getText());
        Variables.setSettingPriority("launch.XmxArgument", "int:largest");
        
        if (!JavaPathField.getText().equalsIgnoreCase("default")) {
            Variables.setSetting("launch.JavaExecutablePath", JavaPathField.getText());
        }
        
        if (!MinecraftSizeXField.getText().equalsIgnoreCase("default")) {
            Variables.setSetting("launch.UseWidthArgument", "true");
            Variables.setSetting("launch.WidthArgument", MinecraftSizeXField.getText());
        }
        
        if (!MinecraftSizeYField.getText().equalsIgnoreCase("default")) {
            Variables.setSetting("launch.UseHeightArgument", "true");
            Variables.setSetting("launch.HeightArgument", MinecraftSizeYField.getText());
        }
        
        for (String line : AdditionalVariablesPane.getText().split("\n")) {
            String settingName = line.split("=")[0];
            String settingValue = line.substring(settingName.length());
            Variables.setSetting(settingName, settingValue);
        }
    }