question: 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 ) ; }
target:  Show the find/replace dialog