Example with a slider and model-driven graphical output

Here you see a applet with an interactive element, a slider, and an applet for the output.

You have to reset everytime...

Objects: an applet with the name 'slider1', an applet ... 'grafiekAB', a button ... "Reset' and a method 'setModel', a button 'Run' and a method 'runModel', a form 'veld1' and a form with the name 'A8'. In the form 'A8' there are two applets, two buttons and one output-field.


Two applets with the name 'slider1' and 'grafiekAB'; and the form "A8"

The function 'run' runs the model and the output until 'Tmax'.

Be careful: 1000 internal points in the internal buffer. More points gives java-error. See the other examples.

De maximum of y and the minimal of y you have to set with 'setYmaxb' and 'setYmaxb'.

You need the function infoFromJava_Slider (sliderNaam, waarde) for sending an event.

Enschede, 10 febr. 2000; updated jan 2003.