TableColumnModel colModel = JFritz.getJframe().getCallerTable() .getColumnModel();   if (JFritzUtils.parseBoolean(Main.getProperty( "option.showCallByCallColumn", "true"))) {   if (getCallerTable().getColumnIndex("callbycall") == -1) { colModel.addColumn(JFritz.getJframe().getCallerTable() .getCallByCallColumn()); colModel.getColumn(colModel.getColumnCount() - 1) .setPreferredWidth( Integer.parseInt(Main.getProperty( "column.callbycall.width", "50"))); } } else {  int columnIndex = getCallerTable().getColumnIndex("callbycall"); if (columnIndex != -1) { colModel.removeColumn(colModel.getColumn(columnIndex)); } }  if (JFritzUtils.parseBoolean(Main.getProperty( "option.showCommentColumn", "true"))) {   if (getCallerTable().getColumnIndex("comment") == -1) { colModel.addColumn(JFritz.getJframe().getCallerTable() .getCommentColumn()); colModel.getColumn(colModel.getColumnCount() - 1) .setPreferredWidth( Integer.parseInt(Main.getProperty( "column.comment.width", "50"))); } } else {  int columnIndex = getCallerTable().getColumnIndex("comment"); if (columnIndex != -1) { colModel.removeColumn(colModel.getColumn(columnIndex)); } }  if (JFritzUtils.parseBoolean(Main.getProperty( "option.showPortColumn", "true"))) {   if (getCallerTable().getColumnIndex("port") == -1) { colModel.addColumn(JFritz.getJframe().getCallerTable() .getPortColumn()); colModel.getColumn(colModel.getColumnCount() - 1) .setPreferredWidth( Integer.parseInt(Main.getProperty( "column.port.width", "50"))); } } else {  int columnIndex = getCallerTable().getColumnIndex("port"); if (columnIndex != -1) { colModel.removeColumn(colModel.getColumn(columnIndex)); } }
callerListPanel.showHideColumns();
	public void showConfigDialog() {		configDialog = new ConfigDialog(this);		configDialog.setLocationRelativeTo(this);		if (configDialog.showDialog()) {			configDialog.storeValues();			Main.saveProperties();			if (JFritz.getSIPProviderTableModel().getProviderList().size() == 0) { // Noch				// keine				// SipProvider				// eingelesen.				try {					Vector data = JFritz.getFritzBox().retrieveSipProvider();					JFritz.getSIPProviderTableModel().updateProviderList(data);					JFritz.getSIPProviderTableModel().fireTableDataChanged();					JFritz.getSIPProviderTableModel().saveToXMLFile(							Main.SAVE_DIR + JFritz.SIPPROVIDER_FILE);					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$				}			}			monitorButton.setEnabled((Integer.parseInt(Main.getProperty(					"option.callMonitorType", "0")) > 0)); //$NON-NLS-1$,  //$NON-NLS-2$			TableColumnModel colModel = JFritz.getJframe().getCallerTable()			.getColumnModel();			// Show / hide CallByCall column			if (JFritzUtils.parseBoolean(Main.getProperty(					"option.showCallByCallColumn", "true"))) { //$NON-NLS-1$,  //$NON-NLS-2$				// No Call-by-call column found. Add one				if (getCallerTable().getColumnIndex("callbycall") == -1) { //$NON-NLS-1$					colModel.addColumn(JFritz.getJframe().getCallerTable()							.getCallByCallColumn());					colModel.getColumn(colModel.getColumnCount() - 1)					.setPreferredWidth(							Integer.parseInt(Main.getProperty(									"column.callbycall.width", "50"))); //$NON-NLS-1$, //$NON-NLS-2$				}			} else {				// Try to remove Call-By-Call Column				int columnIndex = getCallerTable().getColumnIndex("callbycall"); //$NON-NLS-1$				if (columnIndex != -1) {					colModel.removeColumn(colModel.getColumn(columnIndex));				}			}			// Show / hide comment column			if (JFritzUtils.parseBoolean(Main.getProperty(					"option.showCommentColumn", "true"))) { //$NON-NLS-1$, //$NON-NLS-2$				// No comment column found. Add one				if (getCallerTable().getColumnIndex("comment") == -1) { //$NON-NLS-1$					colModel.addColumn(JFritz.getJframe().getCallerTable()							.getCommentColumn());					colModel.getColumn(colModel.getColumnCount() - 1)					.setPreferredWidth(							Integer.parseInt(Main.getProperty(									"column.comment.width", "50")));//$NON-NLS-1$, //$NON-NLS-2$				}			} else {				// Try to remove comment column				int columnIndex = getCallerTable().getColumnIndex("comment");//$NON-NLS-1$				if (columnIndex != -1) {					colModel.removeColumn(colModel.getColumn(columnIndex));				}			}			// Show / hide port column			if (JFritzUtils.parseBoolean(Main.getProperty(					"option.showPortColumn", "true"))) {//$NON-NLS-1$, //$NON-NLS-2$				// No port column found. Add one				if (getCallerTable().getColumnIndex("port") == -1) { //$NON-NLS-1$					colModel.addColumn(JFritz.getJframe().getCallerTable()							.getPortColumn());					colModel.getColumn(colModel.getColumnCount() - 1)					.setPreferredWidth(							Integer.parseInt(Main.getProperty(									"column.port.width", "50")));//$NON-NLS-1$, //$NON-NLS-2$				}			} else {				// Try to remove port column				int columnIndex = getCallerTable().getColumnIndex("port");//$NON-NLS-1$				if (columnIndex != -1) {					colModel.removeColumn(colModel.getColumn(columnIndex));				}			}		}		configDialog.dispose();	}