|
Homework 7
- Add a button to your applet. When a user clicks the button, the
event handler should call Hop for your cricket and grasshopper, and then
repaint the applet to show them in their new location.
- After the above part is working add two text boxes. Label each
of them as "X move" and "Y move". Users should input values into these
boxes and when they click the button, one of your insects should move that
distance and be redrawn in the appropriate square.
|