Hi all,
 
This problem might be more suitable on a Java 2D discussion list but it's driving me crazy so I'd be grateful for any help. I'm trying to draw a simple star like grid on a panel. I'm trying to draw lines at 30, 60, 90, 120, etc. degrees from a point that I pick with the mouse. I'm using the equation of a line, y-y1 = m(x-x1) to draw the line. The trouble is the angle at which the line is drawn changes depending on what part of the panel I click on. Can anybody please help? It should be such a simple task but it just won't work.

Reply via email to