0

I'm working over an interface in which the user enter coordinates and each point is linked two by two. The graoh is drawn in a JPanel by overriding the paint method and using drawLine to link one point and the next. However, the origin being at the top left corner of my JPanel, the resulting graph is a "mirror" of what is should be. Is there a way of inverting the axes so that I can draw the lines without manipulating the coordinates entered before drawing it ?

0 Answers0