This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When performing Find/Replace within a selection (Search Selection checkbox checked, or Ctrl+F on a multi-line selection), then after leaving the dialog after the first Find or Replace operation, the selection is gone, or rather replaced with the last Find/Replace target. It should be maintained/restored when leaving the dialog or the Find bar (Ctrl+F).
reproducible
http://hg.netbeans.org/jet-main/rev/2f003a4ade67
Verified.