Slide 10 of 13
Lines 28 to 30 call the Insets class which sets a border 5-pixels in from each edge. Without this the applet enclosing box may be incomplete.
Lines 32 to 41 checks the user interface for user interface events and updates input parameters and readouts accordingly. In this case, only a scrollbar is included and requires testing. Following handling of changed amplitude data, the applet is redrawn by calling ’repaint()’ in Line 37.