Buggy code:
public class ContactOverview extends JPanel { private ContactBook < Contact > cb ; private JLabel searchBy ; private JLabel searchResult ; private JComboBox < String > searchCriteria ; protected DefaultComboBoxModel < String > searchResultData ; private String [ ] searchCriteriaData = new String [ ] { "Name" , "City" , "Company//School" , "Meeting<seq2seq4repair_space>Location" , "Email" , "Phone" , "Notes" } ; private JButton findButton ; private JComboBox < String > contactSearch ; private JPanel northPanel ; private JPanel westPanel ; private JPanel eastPanel ; private JPanel southPanel ; protected JLabel name ; protected JLabel city ; protected JLabel company ; protected JLabel meetingLoc ; protected JLabel email ; protected JLabel phone ; protected JLabel notes ; protected JLabel lastContacted ; private JTextField searchDetail ; private JButton newButton ; private JButton editButton ; private JButton deleteButton ; private JButton refreshButton ; private ContactOverview mainPanel ; public ContactOverview ( ContactBook program ) { } private class ComboBoxListener implements ItemListener { private String selectedContactName ; @ Override public void itemStateChanged ( ItemEvent e ) { } } private class ButtonListener implements ActionListener { @ Override public void actionPerformed ( ActionEvent e ) { if ( ( e . getSource ( ) ) == ( newButton ) ) { Contact stub = new Contact ( "New<seq2seq4repair_space>Contact" ) ; cb . addContact ( stub ) ; JFrame popup = new ContactChanges ( mainPanel , cb , stub ) ; searchResultData . addElement ( stub . getName ( ) ) ; } if ( ( e . getSource ( ) ) == ( deleteButton ) ) { cb . deleteContactByName ( name . getText ( ) ) ; searchResultData . removeElement ( name . getText ( ) ) ; } if ( ( e . getSource ( ) ) == ( findButton ) ) { String detail = searchDetail . getText ( ) ; String category = searchCriteria . getSelectedItem ( ) . toString ( ) ; searchResultData . removeAllElements ( ) ; LinkedList < Contact > results = new LinkedList < Contact > ( ) ; if ( category . equals ( "Name" ) ) { results = cb . searchByName ( detail ) ; } else if ( category . equals ( "City" ) ) { results = cb . searchByLocation ( detail ) ; } else if ( category . equals ( "Company//School" ) ) { results = cb . searchByCompanyOrSchool ( detail ) ; } else if ( category . equals ( "Meeting<seq2seq4repair_space>Location" ) ) { results = cb . searchByCompanyOrSchool ( detail ) ; } else if ( category . equals ( "Email" ) ) { results = cb . searchByEmail ( detail ) ; } else if ( category . equals ( "Phone" ) ) { results = cb . searchByOtherContact ( detail ) ; } else if ( category . equals ( "Notes" ) ) { <START_BUG> results = cb . searchByCompanyOrSchool ( detail ) ; <END_BUG> } for ( int i = 0 ; i < ( results . size ( ) ) ; i ++ ) { searchResultData . addElement ( results . get ( i ) . getName ( ) ) ; } } if ( ( e . getSource ( ) ) == ( editButton ) ) { String selectedContactName = ( ( String ) ( contactSearch . getSelectedItem ( ) ) ) ; Contact selectedContact = cb . getContactByName ( selectedContactName ) ; JFrame popup = new ContactChanges ( mainPanel , cb , selectedContact ) ; } } } }

Fix:
results = cb . searchByNotes ( detail ) ;