/** Initializes the dialog with values from the preferences */ public void initFromPreferences() { // Copy current JOSM preferences to update API url with the one used in this wizard Preferences copyPref = CustomConfigurator.clonePreferences(Main.pref); copyPref.put("osm-server-url", apiUrl); pnlFullyAutomaticAuthorisationUI.initFromPreferences(copyPref); pnlSemiAutomaticAuthorisationUI.initFromPreferences(copyPref); pnlManualAuthorisationUI.initFromPreferences(copyPref); }