= #JxnPortable\docs\plot_examples\SliderRepeatError_Demo.jxn

slider = @JxnSliderPanel( $this )
r = slider.add( "r", 1., -10., 10. )
!
! Because of using java.awt.Frame.setTitle(String) the following statement 
! does not return the PlotFrame object which is internally needed for update
plot( r cos 2 PI t, r sin 2 PI t ).setTitle( "Error: creates new windows instead of updating the existing" )
!
! KmgFormelPlotFrame.setPlotFrameTitle(String) returns this which is used for the update
plot( r cos 2 PI t, r sin 2 PI t ).setPlotFrameTitle( "ok, the existing window is updated" )
!
pf3 = plot( r cos 2 PI t, r sin 2 PI t )
! here java.awt.Frame.setTitle(String) is called on pf3 in a separate statement
pf3.setTitle( "ok, the existing window is updated" )