Find / Replace Dialog

Post a reply

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: Find / Replace Dialog

Find / Replace Dialog

Post by jeffy » Sat Apr 13, 2013 10:29 pm

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.

https://code.google.com/p/simbrain/sour ... ialog.java

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

Top

cron