public ReplaceDialog(JTextComponent text,FindReplaceActions finderActions){
  super(ActionUtils.getFrameFor(text),false);
  initComponents();
  registerKeyAction(this);
  textComponent=text;
  finder=finderActions;
  textComponent.addCaretListener(this);
  setLocationRelativeTo(text.getRootPane());
}

public ReplaceDialog ( JTextComponent text , FindReplaceActions finderActions ) { super ( ActionUtils . getFrameFor ( text ) , false ) ; initComponents ( ) ; registerKeyAction ( this ) ; textComponent = text ; finder = finderActions ; textComponent . addCaretListener ( this ) ; setLocationRelativeTo ( text . getRootPane ( ) ) ; }
creates new form finddialog
