JFritz.setProperty("dial.prefix", ((ConfigPanel2)descriptor2.getPanelComponent()).dialPrefix.getText()); JFritz .setProperty( "option.activateDialPrefix", Boolean.toString( ((ConfigPanel2)descriptor2.getPanelComponent()).activateDialPrefix.isSelected()));
	public void showWizard(){				if(canceled)			return;				//possible return values: 0 finish clicked, 1 cancel clicked, 2 error...       int ret = wizard.showModalDialog();              switch (ret){              		case 0:       			Debug.msg("Finished clicked, saving settings");       			       			//save the various settings       			JFritz.setProperty("option.playSounds", Boolean.toString(       					(((ConfigPanel5)descriptor5.getPanelComponent()).soundButton //$NON-NLS-1$       					.isSelected())));       			JFritz.setProperty("option.startExternProgram", Boolean //$NON-NLS-1$       					.toString(       					(((ConfigPanel5)descriptor5.getPanelComponent()).externProgramCheckBox.isSelected())));       			JFritz.setProperty(       					"option.externProgram", JFritzUtils.convertSpecialChars(       					(((ConfigPanel5)descriptor5.getPanelComponent()).externProgramTextField //$NON-NLS-1$       					.getText())));       			JFritz.setProperty("option.callMonitorType", String //$NON-NLS-1$       					.valueOf((((ConfigPanel5)descriptor5.getPanelComponent()).callMonitorCombo       					.getSelectedIndex())));       			// Set Popup Messages Type       			if ( ((ConfigPanel4)descriptor4.getPanelComponent()).popupNoButton.isSelected() ) {       				JFritz.setProperty("option.popuptype", "0"); //$NON-NLS-1$, //$NON-NLS-2$       			} else if (((ConfigPanel4)descriptor4.getPanelComponent()).popupDialogButton.isSelected()) {       				JFritz.setProperty("option.popuptype", "1"); //$NON-NLS-1$, //$NON-NLS-2$       			} else {       				JFritz.setProperty("option.popuptype", "2"); //$NON-NLS-1$, //$NON-NLS-2$       			}       			       			JFritz.setProperty("box.password", Encryption.encrypt(       					((ConfigPanel3)descriptor3.getPanelComponent()).password)); //$NON-NLS-1$       			       			JFritz.setProperty("box.address",        					((ConfigPanel3)descriptor3.getPanelComponent()).address.getText()); //$NON-NLS-1$       			JFritz.setProperty("area.code",        					((ConfigPanel2)descriptor2.getPanelComponent()).areaCode.getText()); //$NON-NLS-1$       			JFritz.setProperty("country.code",        					((ConfigPanel2)descriptor2.getPanelComponent()).countryCode.getText()); //$NON-NLS-1$       			JFritz.setProperty("area.prefix",        					((ConfigPanel2)descriptor2.getPanelComponent()).areaPrefix.getText()); //$NON-NLS-1$       			JFritz.setProperty("country.prefix",        					((ConfigPanel2)descriptor2.getPanelComponent()).countryPrefix.getText()); //$NON-NLS-1$       			      			if (((ConfigPanel3)descriptor3.getPanelComponent()).firmware != null) {       				JFritz.setProperty("box.firmware",        						((ConfigPanel3)descriptor3.getPanelComponent()).firmware.getFirmwareVersion()); //$NON-NLS-1$       			} else {       				JFritz.removeProperty("box.firmware"); //$NON-NLS-1$       			}       			      			jfritz.getFritzBox().detectFirmware();      			jfritz.saveProperties();       			       			break;       		case 1:       			Debug.msg("Cancel clicked, not saving values");       			break;       		case 2:       			Debug.msg("Error in the wizard, bailing out..");       			break;       			              }		}