Drag the mouse to draw a line

Source code

RubberBand.java