private void showFindReplaceDialog(){
  JFrame frame=new JFrame();
  FindReplaceDialog dialog=new FindReplaceDialog(frame,this);
  frame.setContentPane(dialog);
  frame.setTitle("Find / Replace");
  frame.setVisible(true);
  frame.pack();
  frame.setLocationRelativeTo(null);
}

private void showFindReplaceDialog ( ) { JFrame frame = new JFrame ( ) ; FindReplaceDialog dialog = new FindReplaceDialog ( frame , this ) ; frame . setContentPane ( dialog ) ; frame . setTitle ( "Find / Replace" ) ; frame . setVisible ( true ) ; frame . pack ( ) ; frame . setLocationRelativeTo ( null ) ; }
show the find / replace dialog
