callMonitorCombo.addItem("Keiner"); callMonitorCombo.addItem("Telnet"); callMonitorCombo.addItem("Syslog"); callMonitorCombo.addItem("YAC"); callMonitorPane.add(callMonitorCombo, c);
	protected JPanel createCallMonitorPane() {		ActionListener actionListener = new ActionListener() {			public void actionPerformed(ActionEvent e) {				if ("comboboxchanged".equalsIgnoreCase(e.getActionCommand())) {					// Zur Darstellung der gewnschten Einstellungspanels					switch (callMonitorCombo.getSelectedIndex()) {					case 0: {						startCallMonitorButton.setVisible(false);						callMonitorAfterStartButton.setVisible(false);						soundButton.setVisible(false);						yacMonitorPane.setVisible(false);						telnetMonitorPane.setVisible(false);						syslogMonitorPane.setVisible(false);						callMonitorPane.repaint();						Debug.msg("Kein Anrufmonitor erwnscht");						stopAllCallMonitors();						break;					}					case 1: {						startCallMonitorButton.setVisible(true);						callMonitorAfterStartButton.setVisible(true);						soundButton.setVisible(true);						yacMonitorPane.setVisible(false);						telnetMonitorPane.setVisible(true);						syslogMonitorPane.setVisible(false);						callMonitorPane.repaint();						Debug.msg("Telnet Anrufmonitor gewhlt");						stopAllCallMonitors();						break;					}					case 2: {						startCallMonitorButton.setVisible(true);						callMonitorAfterStartButton.setVisible(true);						soundButton.setVisible(true);						yacMonitorPane.setVisible(false);						telnetMonitorPane.setVisible(false);						syslogMonitorPane.setVisible(true);						callMonitorPane.repaint();						Debug.msg("Syslog Anrufmonitor gewhlt");						stopAllCallMonitors();						break;					}					case 3: {						startCallMonitorButton.setVisible(true);						callMonitorAfterStartButton.setVisible(true);						soundButton.setVisible(true);						yacMonitorPane.setVisible(true);						telnetMonitorPane.setVisible(false);						syslogMonitorPane.setVisible(false);						callMonitorPane.repaint();						Debug.msg("YAC Anrufmonitor gewhlt");						stopAllCallMonitors();						break;					}					}				} else if ("startcallmonitor".equalsIgnoreCase(e						.getActionCommand())) {					JFritz.setProperty("option.yacport", yacPort.getText());					// Aktion des StartCallMonitorButtons					JFritz.setProperty("option.callMonitorType", String							.valueOf(callMonitorCombo.getSelectedIndex()));					jfritz.getJframe().switchMonitorButton();					if (startCallMonitorButton.isSelected()) {						startCallMonitorButton.setText("Stoppe Anrufmonitor");					} else {						startCallMonitorButton.setText("Starte Anrufmonitor");					}				}			}		};		callMonitorPane = new JPanel();		callMonitorPane.setLayout(new GridBagLayout());		GridBagConstraints c = new GridBagConstraints();		c.insets.top = 5;		c.insets.bottom = 5;		c.insets.left = 5;		c.insets.right = 5;		c.anchor = GridBagConstraints.WEST;		c.gridx = 0;		c.gridy = 0;		callMonitorCombo = new JComboBox();		c.gridwidth = 1;		callMonitorCombo.addItem("Keiner");		callMonitorCombo.addItem("Telnet");		callMonitorCombo.addItem("Syslog");		callMonitorCombo.addItem("YAC");		callMonitorPane.add(callMonitorCombo, c);		c.gridx = 1;		c.gridy = 0;		c.gridwidth = 2;		startCallMonitorButton = new JToggleButton();		startCallMonitorButton.setActionCommand("startCallMonitor");		startCallMonitorButton.addActionListener(actionListener);		callMonitorPane.add(startCallMonitorButton, c);		c.gridx = 0;		c.gridy = 1;		c.gridwidth = 3;		callMonitorAfterStartButton = new JCheckBox(				"Call-Monitor nach Programmstart automatisch starten?");		callMonitorPane.add(callMonitorAfterStartButton, c);		soundButton = new JCheckBox("Bei eingehenden Anrufen Sound abspielen");		c.gridy = 2;		c.gridwidth = 3;		callMonitorPane.add(soundButton, c);		c.gridy = 3;		telnetMonitorPane = new JPanel();		telnetMonitorPane = createTelnetPane();		syslogMonitorPane = new JPanel();		syslogMonitorPane = createSyslogPane();		yacMonitorPane = new JPanel();		yacMonitorPane = createYACPane();		callMonitorPane.add(telnetMonitorPane, c);		callMonitorPane.add(syslogMonitorPane, c);		callMonitorPane.add(yacMonitorPane, c);		callMonitorCombo.addActionListener(actionListener);		return callMonitorPane;	}