Here is my code,
I am trying to make a line in-between 2 objects ignore the names as they don't mean anyhting as I changed what I was doing halfway through and don't know how to change the name. The 2 points move randomly. I have imported java.awt.Color so I don't know the problem.
*EDIT
I figured it out it was drawing a white line on a white background. I fixed it but would like to know how change the color of the line though. It would be nice if I was able to change the color of the line as it runs so it changes from white to green to black etc.
1 | getBackground().drawLine(Mouse_follower.p1x, Mouse_follower.p1y, Line_point_2.p2x, Line_point_2.p2y); |