callByCallFilterButton = new ThreeStateButton(
callByCallFilterButton = new ThreeStateButton3(
	public JPanel createToolBar() {		JToolBar upperToolBar = new JToolBar();		upperToolBar.setFloatable(true);		JToolBar lowerToolbar = new JToolBar();		lowerToolbar.setFloatable(true);		JButton resetFiltersButton = new JButton();		resetFiltersButton.setActionCommand("export_csv"); //$NON-NLS-1$		resetFiltersButton.addActionListener(this);		resetFiltersButton.setIcon(getImageIcon("csv_export.png")); //$NON-NLS-1$		resetFiltersButton.setToolTipText(Main.getMessage("export_csv")); //$NON-NLS-1$		upperToolBar.add(resetFiltersButton);		resetFiltersButton = new JButton();		resetFiltersButton.setActionCommand("import_csv"); //$NON-NLS-1$		resetFiltersButton.addActionListener(this);		resetFiltersButton.setIcon(getImageIcon("csv_import.png")); //$NON-NLS-1$		resetFiltersButton.setToolTipText("CSV-Datei importieren"); //$NON-NLS-1$		resetFiltersButton.setEnabled(false);		upperToolBar.add(resetFiltersButton);		resetFiltersButton = new JButton();		resetFiltersButton.setActionCommand("export_xml"); //$NON-NLS-1$		resetFiltersButton.addActionListener(this);		resetFiltersButton.setIcon(getImageIcon("xml_export.png")); //$NON-NLS-1$		resetFiltersButton.setToolTipText("XML-Datei exportieren"); //$NON-NLS-1$		upperToolBar.add(resetFiltersButton);		resetFiltersButton = new JButton();		resetFiltersButton.setActionCommand("import_xml"); //$NON-NLS-1$		resetFiltersButton.addActionListener(this);		resetFiltersButton.setIcon(getImageIcon("xml_import.png")); //$NON-NLS-1$		resetFiltersButton.setToolTipText("XML-Datei importieren"); //$NON-NLS-1$		resetFiltersButton.setEnabled(false);		upperToolBar.add(resetFiltersButton);		upperToolBar.addSeparator();		callInFilterButton = new ThreeStateButton(getImageIcon("callin.png"));		callInFilterButton.setActionCommand(FILTER_CALLIN);		callInFilterButton.addActionListener(this);		callInFilterButton.setToolTipText(Main.getMessage(FILTER_CALLIN));		callInFailedFilterButton = new ThreeStateButton(				getImageIcon("callinfailed.png")); //$NON-NLS-1$		callInFailedFilterButton.setActionCommand(FILTER_CALLINFAILED);		callInFailedFilterButton.addActionListener(this);		callInFailedFilterButton.setToolTipText(Main				.getMessage(FILTER_CALLINFAILED));		JPopupMenu missedPopupMenu = new JPopupMenu();		JMenuItem menuItem;		menuItem = new JMenuItem(Main				.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(Main				.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);		callOutFilterButton = new ThreeStateButton(getImageIcon("callout.png"));		callOutFilterButton.setActionCommand(FILTER_CALLOUT);		callOutFilterButton.addActionListener(this);		callOutFilterButton.setToolTipText(Main.getMessage(FILTER_CALLOUT));		anonymFilterButton = new ThreeStateButton(				getImageIcon("phone_nonumber.png")); //$NON-NLS-1$		anonymFilterButton.setActionCommand(FILTER_ANONYM);		anonymFilterButton.addActionListener(this);		anonymFilterButton.setToolTipText(Main.getMessage(FILTER_ANONYM));		fixedFilterButton = new ThreeStateButton(getImageIcon("phone.png")); //$NON-NLS-1$		fixedFilterButton.setActionCommand(FILTER_FIXED);		fixedFilterButton.addActionListener(this);		fixedFilterButton.setToolTipText(Main.getMessage(FILTER_FIXED));		handyFilterButton = new ThreeStateButton(getImageIcon("handy.png")); //$NON-NLS-1$		handyFilterButton.setActionCommand(FILTER_HANDY);		handyFilterButton.addActionListener(this);		handyFilterButton.setToolTipText(Main.getMessage(FILTER_HANDY));		dateFilterButton = new ThreeStateButton(getImageIcon("calendar.png")); //$NON-NLS-1$		dateFilterButton.setActionCommand(FILTER_DATE);		dateFilterButton.addActionListener(this);		dateFilterButton.setToolTipText(Main.getMessage(FILTER_DATE));		JPopupMenu datePopupMenu = new JPopupMenu();		menuItem = new JMenuItem(Main.getMessage("date_filter_today")); //$NON-NLS-1$		menuItem.setActionCommand("setdatefilter_thisday"); //$NON-NLS-1$		menuItem.addActionListener(this);		datePopupMenu.add(menuItem);		menuItem = new JMenuItem(Main.getMessage("date_filter_yesterday")); //$NON-NLS-1$		menuItem.setActionCommand("setdatefilter_yesterday"); //$NON-NLS-1$		menuItem.addActionListener(this);		datePopupMenu.add(menuItem);		menuItem = new JMenuItem(Main.getMessage("date_filter_this_month")); //$NON-NLS-1$		menuItem.setActionCommand("setdatefilter_thismonth"); //$NON-NLS-1$		menuItem.addActionListener(this);		datePopupMenu.add(menuItem);		menuItem = new JMenuItem(Main.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);		startDateChooser = new JDateChooser();		startDateChooser.setVisible(false);		startDateChooser.addPropertyChangeListener("date", this);		endDateChooser = new JDateChooser();		endDateChooser.setDate(Calendar.getInstance().getTime());		endDateChooser.setVisible(false);		endDateChooser.addPropertyChangeListener("date", this);		sipFilterButton = new ThreeStateButton(getImageIcon("world.png")); //$NON-NLS-1$		sipFilterButton.setActionCommand(FILTER_SIP);		sipFilterButton.addActionListener(this);		sipFilterButton.setToolTipText(Main.getMessage(FILTER_SIP));		callByCallFilterButton = new ThreeStateButton(				getImageIcon("callbycall.png")); //$NON-NLS-1$		callByCallFilterButton.setActionCommand(FILTER_CALLBYCALL);		callByCallFilterButton.addActionListener(this);		callByCallFilterButton.setToolTipText(Main				.getMessage(FILTER_CALLBYCALL));		commentFilterButton = new ThreeStateButton(				getImageIcon("commentFilter.png"));		commentFilterButton.setActionCommand(FILTER_COMMENT);		commentFilterButton.addActionListener(this);		commentFilterButton.setToolTipText(Main.getMessage(FILTER_COMMENT));		searchFilterButton = new ThreeStateButton(				getImageIcon("searchfilter.png"));		searchFilterButton.setActionCommand(FILTER_SEARCH);		searchFilterButton.addActionListener(this);		searchFilterButton.setToolTipText(Main.getMessage(FILTER_SEARCH));		searchFilterTextField = new JTextField(10);		deleteEntriesButton = new JButton();		deleteEntriesButton.setToolTipText(Main.getMessage(DELETE_ENTRIES)				.replaceAll("%N", "")); //$NON-NLS-1$,  //$NON-NLS-2$,  		deleteEntriesButton.setActionCommand(DELETE_ENTRY);		deleteEntriesButton.addActionListener(this);		deleteEntriesButton.setIcon(getImageIcon("delete.png")); //$NON-NLS-1$		deleteEntriesButton.setFocusPainted(false);		deleteEntriesButton.setEnabled(false);		searchLabel = new JLabel(Main.getMessage("search") + ": ");//$NON-NLS-1$,  //$NON-NLS-2$		searchLabel.setVisible(false);		searchFilterTextField.addKeyListener(this);		searchFilterTextField.setVisible(false);		resetFiltersButton = new JButton(Main.getMessage("clear")); //$NON-NLS-1$		resetFiltersButton.setActionCommand("clearFilter"); //$NON-NLS-1$		resetFiltersButton.addActionListener(this);		// ThreeStateButton testButton = new		// ThreeStateButton(getImage("searchfilter.png"));		JPanel toolbarPanel = new JPanel();		toolbarPanel.setLayout(new BorderLayout());		// Icons sind noch zu gro, deshalb erst einmal auskommentiert		// toolbarPanel.add(upperToolBar, BorderLayout.NORTH);		/** **********add all Buttons and stuff to the lowerToolbar************** */		// lowerToolbar.add(testButton);		lowerToolbar.add(callInFilterButton);		lowerToolbar.add(callInFailedFilterButton);		lowerToolbar.add(callOutFilterButton);		lowerToolbar.add(anonymFilterButton);		lowerToolbar.add(fixedFilterButton);		lowerToolbar.add(handyFilterButton);		lowerToolbar.add(sipFilterButton);		lowerToolbar.add(callByCallFilterButton);		lowerToolbar.add(commentFilterButton);		lowerToolbar.addSeparator();		lowerToolbar.add(dateFilterButton);		lowerToolbar.add(startDateChooser);		lowerToolbar.add(endDateChooser);		lowerToolbar.addSeparator();		lowerToolbar.add(searchFilterButton);		lowerToolbar.add(searchLabel);		lowerToolbar.add(searchFilterTextField);		lowerToolbar.addSeparator();		lowerToolbar.add(resetFiltersButton);		lowerToolbar.addSeparator();		lowerToolbar.addSeparator();		lowerToolbar.add(deleteEntriesButton);		toolbarPanel.add(lowerToolbar, BorderLayout.SOUTH);		readButtonStatus();		return toolbarPanel;	}