I need to use a slider to control the height of the wave, but have no idea!
I have created a slider. Do I have to formulate another formula to control the height or is there an easier way? I may be on the wrong track :(
Here is part of the code. Any pointers would be great!
Code:
private JSlider adjustHeight = new JSlider(JSlider.VERTICAL, 1, 100, 5); public SineDraw()
Leave a comment: