i making a inquiry based applet that allows user to reset the simulation
but the graph is constantly being updated and shows the Xmax for different driving frequency

so as to achieve the graph of maximum amplitude versus different driver frequencies ?

Thanks