JToolBar upperToolBar = new JToolBar(); upperToolBar.setFloatable(true); JToolBar lowerToolBar = new JToolBar(); lowerToolBar.setFloatable(true);  JButton button = new JButton(); button.setActionCommand("export_csv"); button.addActionListener(this); button.setIcon(getImage("csv_export.png")); button.setToolTipText(JFritz.getMessage("export_csv")); upperToolBar.add(button);  button = new JButton(); button.setActionCommand("import_csv"); button.addActionListener(this); button.setIcon(getImage("csv_import.png")); button.setToolTipText("CSV-Datei importieren"); button.setEnabled(false); upperToolBar.add(button);  button = new JButton(); button.setActionCommand("export_xml"); button.addActionListener(this); button.setIcon(getImage("xml_export.png")); button.setToolTipText("XML-Datei exportieren"); upperToolBar.add(button);  button = new JButton(); button.setActionCommand("import_xml"); button.addActionListener(this); button.setIcon(getImage("xml_import.png")); button.setToolTipText("XML-Datei importieren"); button.setEnabled(false); upperToolBar.add(button);  upperToolBar.addSeparator();  callinFilterButton = new JToggleButton(getImage("callin_grey.png"), true); callinFilterButton.setSelectedIcon(getImage("callin.png")); callinFilterButton.setActionCommand("filter_callin"); callinFilterButton.addActionListener(this); callinFilterButton.setToolTipText(JFritz.getMessage("filter_callin")); callinFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz .getProperty("filter.callin", "false"))); lowerToolBar.add(callinFilterButton);  callinfailedFilterButton = new JToggleButton( getImage("callinfailed_grey.png"), true); callinfailedFilterButton.setSelectedIcon(getImage("callinfailed.png")); callinfailedFilterButton.setActionCommand("filter_callinfailed"); callinfailedFilterButton.addActionListener(this); callinfailedFilterButton.setToolTipText(JFritz .getMessage("filter_callinfailed")); callinfailedFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz .getProperty("filter.callinfailed", "false")));  JPopupMenu missedPopupMenu = new JPopupMenu(); JMenuItem menuItem; menuItem = new JMenuItem(JFritz.getMessage("missed_calls_without_comments_last_week")); menuItem .setActionCommand("filter_callinfailed_allWithoutCommentLastWeek"); menuItem.addActionListener(this); missedPopupMenu.add(menuItem); menuItem = new JMenuItem(JFritz.getMessage("missed_calls_without_comments")); menuItem.setActionCommand("filter_callinfailed_allWithoutComment"); menuItem.addActionListener(this); missedPopupMenu.add(menuItem); MouseAdapter popupListener = new PopupListener(missedPopupMenu); callinfailedFilterButton.addMouseListener(popupListener); lowerToolBar.add(callinfailedFilterButton);  calloutFilterButton = new JToggleButton(getImage("callout_grey.png"), true); calloutFilterButton.setSelectedIcon(getImage("callout.png")); calloutFilterButton.setActionCommand("filter_callout"); calloutFilterButton.addActionListener(this); calloutFilterButton.setToolTipText(JFritz.getMessage("filter_callout")); calloutFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz .getProperty("filter.callout", "false"))); lowerToolBar.add(calloutFilterButton);  numberFilterButton = new JToggleButton( getImage("phone_nonumber_grey.png"), true); numberFilterButton.setSelectedIcon(getImage("phone_nonumber.png")); numberFilterButton.setActionCommand("filter_number"); numberFilterButton.addActionListener(this); numberFilterButton.setToolTipText(JFritz.getMessage("filter_number")); numberFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz .getProperty("filter.number", "false"))); lowerToolBar.add(numberFilterButton);  fixedFilterButton = new JToggleButton(getImage("phone_grey.png"), true); fixedFilterButton.setSelectedIcon(getImage("phone.png")); fixedFilterButton.setActionCommand("filter_fixed"); fixedFilterButton.addActionListener(this); fixedFilterButton.setToolTipText(JFritz.getMessage("filter_fixed")); fixedFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz .getProperty("filter.fixed", "false"))); lowerToolBar.add(fixedFilterButton);  handyFilterButton = new JToggleButton(getImage("handy_grey.png"), true); handyFilterButton.setSelectedIcon(getImage("handy.png")); handyFilterButton.setActionCommand("filter_handy"); handyFilterButton.addActionListener(this); handyFilterButton.setToolTipText(JFritz.getMessage("filter_handy")); handyFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz .getProperty("filter.handy", "false"))); lowerToolBar.add(handyFilterButton);  dateFilterButton = new JToggleButton(getImage("calendar_grey.png"), true); dateFilterButton.setSelectedIcon(getImage("calendar.png")); dateFilterButton.setActionCommand("filter_date"); dateFilterButton.addActionListener(this); dateFilterButton.setToolTipText(JFritz.getMessage("filter_date")); dateFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz .getProperty("filter.date", "false"))); setDateFilterText(); JPopupMenu datePopupMenu = new JPopupMenu(); menuItem = new JMenuItem(JFritz.getMessage("date_filter_today")); menuItem.setActionCommand("setdatefilter_thisday"); menuItem.addActionListener(this); datePopupMenu.add(menuItem); menuItem = new JMenuItem(JFritz.getMessage("date_filter_yesterday")); menuItem.setActionCommand("setdatefilter_yesterday"); menuItem.addActionListener(this); datePopupMenu.add(menuItem); menuItem = new JMenuItem(JFritz.getMessage("date_filter_this_month")); menuItem.setActionCommand("setdatefilter_thismonth"); menuItem.addActionListener(this); datePopupMenu.add(menuItem); menuItem = new JMenuItem(JFritz.getMessage("date_filter_last_month")); menuItem.setActionCommand("setdatefilter_lastmonth"); menuItem.addActionListener(this); datePopupMenu.add(menuItem); popupListener = new PopupListener(datePopupMenu);  dateFilterButton.addMouseListener(popupListener);  lowerToolBar.add(dateFilterButton);  sipFilterButton = new JToggleButton(getImage("world_grey.png"), true); sipFilterButton.setSelectedIcon(getImage("world.png")); sipFilterButton.setActionCommand("filter_sip"); sipFilterButton.addActionListener(this); sipFilterButton.setToolTipText(JFritz.getMessage("filter_sip")); sipFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz .getProperty("filter.sip", "false"))); lowerToolBar.add(sipFilterButton);  callByCallFilterButton = new JToggleButton( getImage("callbycall_grey.png"), true); callByCallFilterButton.setSelectedIcon(getImage("callbycall.png")); callByCallFilterButton.setActionCommand("filter_callbycall"); callByCallFilterButton.addActionListener(this); callByCallFilterButton.setToolTipText(JFritz .getMessage("filter_callbycall")); callByCallFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz .getProperty("filter.callbycall", "false"))); lowerToolBar.add(callByCallFilterButton);  commentFilterButton = new JToggleButton(getImage("commentFilter.png"), true); commentFilterButton.setSelectedIcon(getImage("commentFilter.png")); commentFilterButton.setActionCommand("filter_comment"); commentFilterButton.addActionListener(this); commentFilterButton.setToolTipText(JFritz.getMessage("filter_comment")); commentFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz .getProperty("filter.comment", "false"))); lowerToolBar.add(commentFilterButton);  lowerToolBar.addSeparator(); lowerToolBar.addSeparator();  deleteEntriesButton = new JButton(); deleteEntriesButton.setToolTipText(JFritz.getMessage("delete_entries").replaceAll("%N","")); deleteEntriesButton.setActionCommand("delete_entry"); deleteEntriesButton.addActionListener(this); deleteEntriesButton.setIcon(getImage("delete.png")); deleteEntriesButton.setFocusPainted(false); deleteEntriesButton.setEnabled(false); lowerToolBar.add(deleteEntriesButton);  lowerToolBar.addSeparator();  lowerToolBar.add(new JLabel(JFritz.getMessage("search") + ": ")); searchFilter = new JTextField(JFritz.getProperty("filter.search", ""), 10); searchFilter.addKeyListener(this);  lowerToolBar.add(searchFilter); button = new JButton(JFritz.getMessage("clear")); button.setActionCommand("clearFilter"); button.addActionListener(this); lowerToolBar.add(button);  JPanel toolbarPanel = new JPanel(); toolbarPanel.setLayout(new BorderLayout());   toolbarPanel.add(lowerToolBar, BorderLayout.SOUTH);  return toolbarPanel; }
JToolBar upperToolBar = new JToolBar(); upperToolBar.setFloatable(true); JToolBar lowerToolBar = new JToolBar(); lowerToolBar.setFloatable(true);  JButton button = new JButton(); button.setActionCommand("export_csv"); button.addActionListener(this); button.setIcon(getImage("csv_export.png")); button.setToolTipText(JFritz.getMessage("export_csv")); upperToolBar.add(button);  button = new JButton(); button.setActionCommand("import_csv"); button.addActionListener(this); button.setIcon(getImage("csv_import.png")); button.setToolTipText("CSV-Datei importieren"); button.setEnabled(false); upperToolBar.add(button);  button = new JButton(); button.setActionCommand("export_xml"); button.addActionListener(this); button.setIcon(getImage("xml_export.png")); button.setToolTipText("XML-Datei exportieren"); upperToolBar.add(button);  button = new JButton(); button.setActionCommand("import_xml"); button.addActionListener(this); button.setIcon(getImage("xml_import.png")); button.setToolTipText("XML-Datei importieren"); button.setEnabled(false); upperToolBar.add(button);  upperToolBar.addSeparator();  callinFilterButton = new JToggleButton(getImage("callin_grey.png"), true); callinFilterButton.setSelectedIcon(getImage("callin.png")); callinFilterButton.setActionCommand("filter_callin"); callinFilterButton.addActionListener(this); callinFilterButton.setToolTipText(JFritz.getMessage("filter_callin")); callinFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz .getProperty("filter.callin", "false"))); lowerToolBar.add(callinFilterButton);  callinfailedFilterButton = new JToggleButton( getImage("callinfailed_grey.png"), true); callinfailedFilterButton.setSelectedIcon(getImage("callinfailed.png")); callinfailedFilterButton.setActionCommand("filter_callinfailed"); callinfailedFilterButton.addActionListener(this); callinfailedFilterButton.setToolTipText(JFritz .getMessage("filter_callinfailed")); callinfailedFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz .getProperty("filter.callinfailed", "false")));  JPopupMenu missedPopupMenu = new JPopupMenu(); JMenuItem menuItem; menuItem = new JMenuItem(JFritz .getMessage("missed_calls_without_comments_last_week")); menuItem .setActionCommand("filter_callinfailed_allWithoutCommentLastWeek"); menuItem.addActionListener(this); missedPopupMenu.add(menuItem); menuItem = new JMenuItem(JFritz .getMessage("missed_calls_without_comments")); menuItem.setActionCommand("filter_callinfailed_allWithoutComment"); menuItem.addActionListener(this); missedPopupMenu.add(menuItem); MouseAdapter popupListener = new PopupListener(missedPopupMenu); callinfailedFilterButton.addMouseListener(popupListener); lowerToolBar.add(callinfailedFilterButton);  calloutFilterButton = new JToggleButton(getImage("callout_grey.png"), true); calloutFilterButton.setSelectedIcon(getImage("callout.png")); calloutFilterButton.setActionCommand("filter_callout"); calloutFilterButton.addActionListener(this); calloutFilterButton.setToolTipText(JFritz.getMessage("filter_callout")); calloutFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz .getProperty("filter.callout", "false"))); lowerToolBar.add(calloutFilterButton);  numberFilterButton = new JToggleButton( getImage("phone_nonumber_grey.png"), true); numberFilterButton.setSelectedIcon(getImage("phone_nonumber.png")); numberFilterButton.setActionCommand("filter_number"); numberFilterButton.addActionListener(this); numberFilterButton.setToolTipText(JFritz.getMessage("filter_number")); numberFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz .getProperty("filter.number", "false"))); lowerToolBar.add(numberFilterButton);  fixedFilterButton = new JToggleButton(getImage("phone_grey.png"), true); fixedFilterButton.setSelectedIcon(getImage("phone.png")); fixedFilterButton.setActionCommand("filter_fixed"); fixedFilterButton.addActionListener(this); fixedFilterButton.setToolTipText(JFritz.getMessage("filter_fixed")); fixedFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz .getProperty("filter.fixed", "false"))); lowerToolBar.add(fixedFilterButton);  handyFilterButton = new JToggleButton(getImage("handy_grey.png"), true); handyFilterButton.setSelectedIcon(getImage("handy.png")); handyFilterButton.setActionCommand("filter_handy"); handyFilterButton.addActionListener(this); handyFilterButton.setToolTipText(JFritz.getMessage("filter_handy")); handyFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz .getProperty("filter.handy", "false"))); lowerToolBar.add(handyFilterButton);  dateFilterButton = new JToggleButton(getImage("calendar_grey.png"), true); dateFilterButton.setSelectedIcon(getImage("calendar.png")); dateFilterButton.setActionCommand("filter_date"); dateFilterButton.addActionListener(this); dateFilterButton.setToolTipText(JFritz.getMessage("filter_date")); dateFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz .getProperty("filter.date", "false"))); jfritz.getCallerlist().getDateFilter().updateDateFilter(); setDateFilterText(); JPopupMenu datePopupMenu = new JPopupMenu(); menuItem = new JMenuItem(JFritz.getMessage("date_filter_today")); menuItem.setActionCommand("setdatefilter_thisday"); menuItem.addActionListener(this); datePopupMenu.add(menuItem); menuItem = new JMenuItem(JFritz.getMessage("date_filter_yesterday")); menuItem.setActionCommand("setdatefilter_yesterday"); menuItem.addActionListener(this); datePopupMenu.add(menuItem); menuItem = new JMenuItem(JFritz.getMessage("date_filter_this_month")); menuItem.setActionCommand("setdatefilter_thismonth"); menuItem.addActionListener(this); datePopupMenu.add(menuItem); menuItem = new JMenuItem(JFritz.getMessage("date_filter_last_month")); menuItem.setActionCommand("setdatefilter_lastmonth"); menuItem.addActionListener(this); datePopupMenu.add(menuItem); popupListener = new PopupListener(datePopupMenu);  dateFilterButton.addMouseListener(popupListener);  lowerToolBar.add(dateFilterButton);  sipFilterButton = new JToggleButton(getImage("world_grey.png"), true); sipFilterButton.setSelectedIcon(getImage("world.png")); sipFilterButton.setActionCommand("filter_sip"); sipFilterButton.addActionListener(this); sipFilterButton.setToolTipText(JFritz.getMessage("filter_sip")); sipFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz .getProperty("filter.sip", "false"))); lowerToolBar.add(sipFilterButton);  callByCallFilterButton = new JToggleButton( getImage("callbycall_grey.png"), true); callByCallFilterButton.setSelectedIcon(getImage("callbycall.png")); callByCallFilterButton.setActionCommand("filter_callbycall"); callByCallFilterButton.addActionListener(this); callByCallFilterButton.setToolTipText(JFritz .getMessage("filter_callbycall")); callByCallFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz .getProperty("filter.callbycall", "false"))); lowerToolBar.add(callByCallFilterButton);  commentFilterButton = new JToggleButton(getImage("commentFilter.png"), true); commentFilterButton.setSelectedIcon(getImage("commentFilter.png")); commentFilterButton.setActionCommand("filter_comment"); commentFilterButton.addActionListener(this); commentFilterButton.setToolTipText(JFritz.getMessage("filter_comment")); commentFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz .getProperty("filter.comment", "false"))); lowerToolBar.add(commentFilterButton);  lowerToolBar.addSeparator(); lowerToolBar.addSeparator();  deleteEntriesButton = new JButton(); deleteEntriesButton.setToolTipText(JFritz .getMessage("delete_entries").replaceAll("%N", "")); deleteEntriesButton.setActionCommand("delete_entry"); deleteEntriesButton.addActionListener(this); deleteEntriesButton.setIcon(getImage("delete.png")); deleteEntriesButton.setFocusPainted(false); deleteEntriesButton.setEnabled(false); lowerToolBar.add(deleteEntriesButton);  lowerToolBar.addSeparator();  lowerToolBar.add(new JLabel(JFritz.getMessage("search") + ": ")); searchFilter = new JTextField(JFritz.getProperty("filter.search", ""), 10); searchFilter.addKeyListener(this);  lowerToolBar.add(searchFilter); button = new JButton(JFritz.getMessage("clear")); button.setActionCommand("clearFilter"); button.addActionListener(this); lowerToolBar.add(button);  JPanel toolbarPanel = new JPanel(); toolbarPanel.setLayout(new BorderLayout());   toolbarPanel.add(lowerToolBar, BorderLayout.SOUTH);  return toolbarPanel; }
	public JPanel createToolBar() {		JToolBar upperToolBar = new JToolBar();		upperToolBar.setFloatable(true);		JToolBar lowerToolBar = new JToolBar();		lowerToolBar.setFloatable(true);		JButton button = new JButton();		button.setActionCommand("export_csv"); //$NON-NLS-1$		button.addActionListener(this);		button.setIcon(getImage("csv_export.png")); //$NON-NLS-1$		button.setToolTipText(JFritz.getMessage("export_csv")); //$NON-NLS-1$		upperToolBar.add(button);		button = new JButton();		button.setActionCommand("import_csv"); //$NON-NLS-1$		button.addActionListener(this);		button.setIcon(getImage("csv_import.png")); //$NON-NLS-1$		button.setToolTipText("CSV-Datei importieren"); //$NON-NLS-1$		button.setEnabled(false);		upperToolBar.add(button);		button = new JButton();		button.setActionCommand("export_xml"); //$NON-NLS-1$		button.addActionListener(this);		button.setIcon(getImage("xml_export.png")); //$NON-NLS-1$		button.setToolTipText("XML-Datei exportieren"); //$NON-NLS-1$		upperToolBar.add(button);		button = new JButton();		button.setActionCommand("import_xml"); //$NON-NLS-1$		button.addActionListener(this);		button.setIcon(getImage("xml_import.png")); //$NON-NLS-1$		button.setToolTipText("XML-Datei importieren"); //$NON-NLS-1$		button.setEnabled(false);		upperToolBar.add(button);		upperToolBar.addSeparator();		callinFilterButton = new JToggleButton(getImage("callin_grey.png"), //$NON-NLS-1$				true);		callinFilterButton.setSelectedIcon(getImage("callin.png")); //$NON-NLS-1$		callinFilterButton.setActionCommand("filter_callin"); //$NON-NLS-1$		callinFilterButton.addActionListener(this);		callinFilterButton.setToolTipText(JFritz.getMessage("filter_callin")); //$NON-NLS-1$		callinFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz				.getProperty("filter.callin", "false"))); //$NON-NLS-1$,  //$NON-NLS-2$		lowerToolBar.add(callinFilterButton);		callinfailedFilterButton = new JToggleButton(				getImage("callinfailed_grey.png"), true); //$NON-NLS-1$		callinfailedFilterButton.setSelectedIcon(getImage("callinfailed.png")); //$NON-NLS-1$		callinfailedFilterButton.setActionCommand("filter_callinfailed"); //$NON-NLS-1$		callinfailedFilterButton.addActionListener(this);		callinfailedFilterButton.setToolTipText(JFritz				.getMessage("filter_callinfailed")); //$NON-NLS-1$		callinfailedFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz				.getProperty("filter.callinfailed", "false"))); //$NON-NLS-1$,  //$NON-NLS-2$		JPopupMenu missedPopupMenu = new JPopupMenu();		JMenuItem menuItem;		menuItem = new JMenuItem(JFritz.getMessage("missed_calls_without_comments_last_week")); //$NON-NLS-1$		menuItem				.setActionCommand("filter_callinfailed_allWithoutCommentLastWeek"); //$NON-NLS-1$		menuItem.addActionListener(this);		missedPopupMenu.add(menuItem);		menuItem = new JMenuItem(JFritz.getMessage("missed_calls_without_comments")); //$NON-NLS-1$		menuItem.setActionCommand("filter_callinfailed_allWithoutComment"); //$NON-NLS-1$		menuItem.addActionListener(this);		missedPopupMenu.add(menuItem);		MouseAdapter popupListener = new PopupListener(missedPopupMenu);		callinfailedFilterButton.addMouseListener(popupListener);		lowerToolBar.add(callinfailedFilterButton);		calloutFilterButton = new JToggleButton(getImage("callout_grey.png"), //$NON-NLS-1$				true);		calloutFilterButton.setSelectedIcon(getImage("callout.png")); //$NON-NLS-1$		calloutFilterButton.setActionCommand("filter_callout"); //$NON-NLS-1$		calloutFilterButton.addActionListener(this);		calloutFilterButton.setToolTipText(JFritz.getMessage("filter_callout")); //$NON-NLS-1$		calloutFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz				.getProperty("filter.callout", "false"))); //$NON-NLS-1$,  //$NON-NLS-2$		lowerToolBar.add(calloutFilterButton);		numberFilterButton = new JToggleButton(				getImage("phone_nonumber_grey.png"), true); //$NON-NLS-1$		numberFilterButton.setSelectedIcon(getImage("phone_nonumber.png")); //$NON-NLS-1$		numberFilterButton.setActionCommand("filter_number"); //$NON-NLS-1$		numberFilterButton.addActionListener(this);		numberFilterButton.setToolTipText(JFritz.getMessage("filter_number")); //$NON-NLS-1$		numberFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz				.getProperty("filter.number", "false"))); //$NON-NLS-1$,  //$NON-NLS-2$		lowerToolBar.add(numberFilterButton);		fixedFilterButton = new JToggleButton(getImage("phone_grey.png"), true); //$NON-NLS-1$		fixedFilterButton.setSelectedIcon(getImage("phone.png")); //$NON-NLS-1$		fixedFilterButton.setActionCommand("filter_fixed"); //$NON-NLS-1$		fixedFilterButton.addActionListener(this);		fixedFilterButton.setToolTipText(JFritz.getMessage("filter_fixed")); //$NON-NLS-1$		fixedFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz				.getProperty("filter.fixed", "false"))); //$NON-NLS-1$,  //$NON-NLS-2$		lowerToolBar.add(fixedFilterButton);		handyFilterButton = new JToggleButton(getImage("handy_grey.png"), true); //$NON-NLS-1$		handyFilterButton.setSelectedIcon(getImage("handy.png")); //$NON-NLS-1$		handyFilterButton.setActionCommand("filter_handy"); //$NON-NLS-1$		handyFilterButton.addActionListener(this);		handyFilterButton.setToolTipText(JFritz.getMessage("filter_handy")); //$NON-NLS-1$		handyFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz				.getProperty("filter.handy", "false"))); //$NON-NLS-1$,  //$NON-NLS-2$		lowerToolBar.add(handyFilterButton);		dateFilterButton = new JToggleButton(getImage("calendar_grey.png"), //$NON-NLS-1$				true);		dateFilterButton.setSelectedIcon(getImage("calendar.png")); //$NON-NLS-1$		dateFilterButton.setActionCommand("filter_date"); //$NON-NLS-1$		dateFilterButton.addActionListener(this);		dateFilterButton.setToolTipText(JFritz.getMessage("filter_date")); //$NON-NLS-1$		dateFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz				.getProperty("filter.date", "false"))); //$NON-NLS-1$,  //$NON-NLS-2$		setDateFilterText();		JPopupMenu datePopupMenu = new JPopupMenu();		menuItem = new JMenuItem(JFritz.getMessage("date_filter_today")); //$NON-NLS-1$		menuItem.setActionCommand("setdatefilter_thisday"); //$NON-NLS-1$		menuItem.addActionListener(this);		datePopupMenu.add(menuItem);		menuItem = new JMenuItem(JFritz.getMessage("date_filter_yesterday")); //$NON-NLS-1$		menuItem.setActionCommand("setdatefilter_yesterday"); //$NON-NLS-1$		menuItem.addActionListener(this);		datePopupMenu.add(menuItem);		menuItem = new JMenuItem(JFritz.getMessage("date_filter_this_month")); //$NON-NLS-1$		menuItem.setActionCommand("setdatefilter_thismonth"); //$NON-NLS-1$		menuItem.addActionListener(this);		datePopupMenu.add(menuItem);		menuItem = new JMenuItem(JFritz.getMessage("date_filter_last_month")); //$NON-NLS-1$		menuItem.setActionCommand("setdatefilter_lastmonth"); //$NON-NLS-1$		menuItem.addActionListener(this);		datePopupMenu.add(menuItem);		popupListener = new PopupListener(datePopupMenu);		dateFilterButton.addMouseListener(popupListener);		lowerToolBar.add(dateFilterButton);		sipFilterButton = new JToggleButton(getImage("world_grey.png"), true); //$NON-NLS-1$		sipFilterButton.setSelectedIcon(getImage("world.png")); //$NON-NLS-1$		sipFilterButton.setActionCommand("filter_sip"); //$NON-NLS-1$		sipFilterButton.addActionListener(this);		sipFilterButton.setToolTipText(JFritz.getMessage("filter_sip")); //$NON-NLS-1$		sipFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz				.getProperty("filter.sip", "false"))); //$NON-NLS-1$,  //$NON-NLS-2$		lowerToolBar.add(sipFilterButton);		callByCallFilterButton = new JToggleButton(				getImage("callbycall_grey.png"), true); //$NON-NLS-1$		callByCallFilterButton.setSelectedIcon(getImage("callbycall.png")); //$NON-NLS-1$		callByCallFilterButton.setActionCommand("filter_callbycall"); //$NON-NLS-1$		callByCallFilterButton.addActionListener(this);		callByCallFilterButton.setToolTipText(JFritz				.getMessage("filter_callbycall")); //$NON-NLS-1$		callByCallFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz				.getProperty("filter.callbycall", "false"))); //$NON-NLS-1$,  //$NON-NLS-2$		lowerToolBar.add(callByCallFilterButton);		commentFilterButton = new JToggleButton(getImage("commentFilter.png"), //$NON-NLS-1$				true);		commentFilterButton.setSelectedIcon(getImage("commentFilter.png")); //$NON-NLS-1$		commentFilterButton.setActionCommand("filter_comment"); //$NON-NLS-1$		commentFilterButton.addActionListener(this);		commentFilterButton.setToolTipText(JFritz.getMessage("filter_comment")); //$NON-NLS-1$		commentFilterButton.setSelected(!JFritzUtils.parseBoolean(JFritz				.getProperty("filter.comment", "false"))); //$NON-NLS-1$,  //$NON-NLS-2$		lowerToolBar.add(commentFilterButton);		lowerToolBar.addSeparator();		lowerToolBar.addSeparator();		deleteEntriesButton = new JButton();		deleteEntriesButton.setToolTipText(JFritz.getMessage("delete_entries").replaceAll("%N","")); //$NON-NLS-1$,  //$NON-NLS-2$,  //$NON-NLS-3$		deleteEntriesButton.setActionCommand("delete_entry"); //$NON-NLS-1$		deleteEntriesButton.addActionListener(this);		deleteEntriesButton.setIcon(getImage("delete.png")); //$NON-NLS-1$		deleteEntriesButton.setFocusPainted(false);		deleteEntriesButton.setEnabled(false);		lowerToolBar.add(deleteEntriesButton);		lowerToolBar.addSeparator();		lowerToolBar.add(new JLabel(JFritz.getMessage("search") + ": ")); //$NON-NLS-1$,  //$NON-NLS-2$		searchFilter = new JTextField(JFritz.getProperty("filter.search", ""), //$NON-NLS-1$,  //$NON-NLS-2$				10);		searchFilter.addKeyListener(this);		lowerToolBar.add(searchFilter);		button = new JButton(JFritz.getMessage("clear")); //$NON-NLS-1$		button.setActionCommand("clearFilter"); //$NON-NLS-1$		button.addActionListener(this);		lowerToolBar.add(button);		JPanel toolbarPanel = new JPanel();		toolbarPanel.setLayout(new BorderLayout());		// Icons sind noch zu gro, deshalb erst einmal auskommentiert		// toolbarPanel.add(upperToolBar, BorderLayout.NORTH);		toolbarPanel.add(lowerToolBar, BorderLayout.SOUTH);		return toolbarPanel;	}