JScrollPane otherPaneScrollable = new JScrollPane(createOtherPane());
JScrollPane otherPaneScrollable = new JScrollPane(otherPanel);
	protected void drawDialog() {		// Create JTabbedPane		JTabbedPane tpane = new JTabbedPane(JTabbedPane.TOP);		tpane.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));		okButton = new JButton(Main.getMessage("okay")); //$NON-NLS-1$		okButton.setIcon(new ImageIcon(Toolkit.getDefaultToolkit().getImage(				getClass().getResource(						"/de/moonflower/jfritz/resources/images/okay.png")))); //$NON-NLS-1$		cancelButton = new JButton(Main.getMessage("cancel")); //$NON-NLS-1$		timerSlider = new JSlider(0, 120, 30);		timerSlider.setPaintTicks(true);		timerSlider.setMinorTickSpacing(10);		timerSlider.setMajorTickSpacing(30);		timerSlider.setPaintLabels(true);		timerSlider.addChangeListener(new ChangeListener() {			public void stateChanged(ChangeEvent e) {				if (timerSlider.getValue() < 3)					timerSlider.setValue(3);				timerLabel						.setText(Main.getMessage("timer")+": " + timerSlider.getValue() +" "+ Main.getMessage("abbreviation_minutes")); //$NON-NLS-1$,  //$NON-NLS-2$			}		});		KeyListener keyListener = (new KeyAdapter() {			public void keyPressed(KeyEvent e) {				if (e.getKeyCode() == KeyEvent.VK_ESCAPE						|| (e.getSource() == cancelButton && e.getKeyCode() == KeyEvent.VK_ENTER)) {					pressed_OK = false;					ConfigDialog.this.setVisible(false);				}				if (e.getSource() == okButton						&& e.getKeyCode() == KeyEvent.VK_ENTER) {					pressed_OK = true;					ConfigDialog.this.setVisible(false);				}			}		});		ActionListener actionListener = new ActionListener() {			public void actionPerformed(ActionEvent e) {				Object source = e.getSource();				pressed_OK = (source == okButton);				if (source == okButton						|| source == cancelButton) {					ConfigDialog.this.setVisible(false);				} else if (e.getActionCommand().equals("fetchSIP")) { //$NON-NLS-1$					try {						JFritz.getFritzBox().detectFirmware();						Vector data = JFritz.getFritzBox().retrieveSipProvider();						JFritz.getSIPProviderTableModel().updateProviderList(								data);						JFritz.getSIPProviderTableModel()								.fireTableDataChanged();						JFritz.getCallerList().fireTableDataChanged();					} catch (WrongPasswordException e1) {						JFritz.errorMsg(Main.getMessage("wrong_password")); //$NON-NLS-1$						Debug.errDlg(Main.getMessage("wrong_password")); //$NON-NLS-1$					} catch (IOException e1) {						JFritz.errorMsg(Main.getMessage("box_address_wrong")); //$NON-NLS-1$						Debug.errDlg(Main.getMessage("box_address_wrong")); //$NON-NLS-1$					} catch (InvalidFirmwareException e1) {						JFritz.errorMsg(Main.getMessage("unknown_firmware")); //$NON-NLS-1$						Debug.errDlg(Main.getMessage("unknown_firmware")); //$NON-NLS-1$					}				}			}		};		// Create OK/Cancel Panel		GridBagConstraints c = new GridBagConstraints();		c.insets.top = 5;		c.insets.bottom = 5;		c.gridwidth = GridBagConstraints.REMAINDER;		c.anchor = GridBagConstraints.CENTER;		JPanel okcancelpanel = new JPanel();		okButton.addActionListener(actionListener);		okButton.addKeyListener(keyListener);		okcancelpanel.add(okButton, c);		cancelButton.addActionListener(actionListener);		cancelButton.addKeyListener(keyListener);		cancelButton.setMnemonic(KeyEvent.VK_ESCAPE);		okcancelpanel.add(cancelButton);        //set default confirm button (Enter)        getRootPane().setDefaultButton(okButton);                       //set default close button (ESC)               KeyStroke escapeKeyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0, false);        Action escapeAction = new AbstractAction()        {            private static final long serialVersionUID = 3L;            public void actionPerformed(ActionEvent e)            {                 cancelButton.doClick();            }        };        getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(escapeKeyStroke, "ESCAPE"); //$NON-NLS-1$        getRootPane().getActionMap().put("ESCAPE", escapeAction); //$NON-NLS-1$						tpane.addTab(				Main.getMessage("FRITZ!Box"), fritzBoxPanel); //$NON-NLS-1$		tpane.addTab(Main.getMessage("telephone"), phonePanel); //$NON-NLS-1$		tpane				.addTab(						Main.getMessage("sip_numbers"), createSipPane(actionListener)); //$NON-NLS-1$		JScrollPane callerListPaneScrollable = new JScrollPane(				createCallerListPane());		tpane.addTab(Main.getMessage("callerlist"), callerListPaneScrollable); //$NON-NLS-1$		tpane.addTab(Main.getMessage("callmonitor"), callMonitorPanel); //$NON-NLS-1$		tpane.addTab(Main.getMessage("messages"), messagePanel); //$NON-NLS-1$		JScrollPane otherPaneScrollable = new JScrollPane(createOtherPane()); //$NON-NLS-1$		tpane.addTab(Main.getMessage("other"), otherPaneScrollable); //$NON-NLS-1$		tpane.addTab(Main.getMessage("language"),languagePanel);		getContentPane().setLayout(new BorderLayout());		getContentPane().add(tpane, BorderLayout.CENTER);		getContentPane().add(okcancelpanel, BorderLayout.SOUTH);		c.fill = GridBagConstraints.HORIZONTAL;		addKeyListener(keyListener);		setSize(new Dimension(510, 360));		setResizable(false);		// pack();	}