Try [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=492.0]Easy Java simulation[/url]. Drawing waveform is a default GUI element in EJS. It will be easier to create simulation with EJS.