if (!filter.equals(search.getText())) { filter = search.getText();
String filter = search.getText().trim();   if (! filter.equals(JFritz.getProperty("filter.Phonebook.search",""))) {
	public void keyPressed(KeyEvent arg0) {		if (arg0.getKeyCode() == KeyEvent.VK_ENTER) {			String filter = "";			JTextField search = (JTextField) arg0.getSource();			if (!filter.equals(search.getText())) {				filter = search.getText();				JFritz.setProperty("filter.Phonebook.search", filter);				jfritz.getPhonebook().updateFilter();				jfritz.getPhonebook().fireTableDataChanged();			}			if (search.getText().equals("")){				filter = " ";				JFritz.setProperty("filter.Phonebook.search", filter);				jfritz.getPhonebook().updateFilter();				jfritz.getPhonebook().fireTableDataChanged();			}		}	}