I\'ve been trying to use painter to draw the line between to dots but I have two problems that I need to resolve.