public void msgNotFound(){
  JOptionPane.showMessageDialog(null,"Search String " + pattern + " not found","Find",JOptionPane.INFORMATION_MESSAGE);
}

public void msgNotFound ( ) { JOptionPane . showMessageDialog ( null , "Search String " + pattern + " not found" , "Find" , JOptionPane . INFORMATION_MESSAGE ) ; }
display an optionpane dialog that the search string is not found
