I'm trying to draw lines on a drawing panel using the mouse to press, drag and release to draw a line. I also need to add functionality to allow the user to change the color of the line. I've just started on this and somehow I cannot get the mouse events to register.
I've enclosed the code below. Could someone please tell me what I'm missing.
Please help me figure out my problem. Why are the mouse clicks not being registered.