this code below can sketch(draw) on anywhere on pane. My question is, how to change this code to make it draw straight lines instead of not straight lines.
As you can se