I still have the error of NullPointerException for the following code (to draw on the the panel just with mouse press and release). i have four classes, the error is at DrawPanel class when i create an object of class MyLine, i don't know why
the following is the main abstract class
the next is the class for drawing lines
the following is the panel class to draw on
finally is the
test for the code