It has a dependency on a ScriptEditor class but that can be easily removed. It also relies on a utility class called LabelledItemPanel that does not have any dependencies of its own so you can just pull that out and use it. Or those two lines can just be replaced with Swing code.

I'm not a professional developer so feedback and fixes welcome. ... I guess one thing I just noticed is that it's misnamed as a dialog class since it's a panel. Too lazy to change that now.... Cheers.

- Jeff

Hi everyone,

I just hacked together a Find / Replace dialog based on Robert's helpful example code. With minimal effort it should be portable and usable on its own, so feel free to adapt it for your own code.

It has a dependency on a ScriptEditor class but that can be easily removed. It also relies on a utility class called LabelledItemPanel that does not have any dependencies of its own so you can just pull that out and use it. Or those two lines can just be replaced with Swing code.

I'm not a professional developer so feedback and fixes welcome. ... I guess one thing I just noticed is that it's misnamed as a dialog class since it's a panel. Too lazy to change that now.... Cheers.