Next page | Contents page |

Exercise 27 - freehand drawing

Base this on Sheet.java, renaming it to Freehand.java (and rename the class accordingly). Enable a freehand line to be drawn with the mouse when it is dragged (ie, any button is down).

If you can, improve the result so that if drawing is resumed elsewhere on the window, an additional line is drawn, not connected to the first one.

Next page | Contents page |