drawLine - inconsistent endpoint
In a particular applet, I have a need to draw lines with a precise length. There seems to be an inconsistency, however, whether the second endpoint is included or not. From experimentation I encountered both cases:
1) drawing directly in an applet window or in an offscreen image with Graphics, the second endpoint is included.
2) drawing in an offscreen image with Graphics2D the seconded endpoint is not included.
Is this generally true and if so is it a bug in Java? (version 1.6.0_24)