The reference implementation provides no special method to draw a single pixel. Instead, Graphics.drawLine(x,y,x,y) can be used to draw a single pixel in the current foreground color. This also works for Graphics2D (at least when using integer coordinates and a corresponding AffineTransform). The current implementation of classpath does not handle this special case; checked with classpath cvs 2006.05.31. See the attached testcase for a simple demonstration. Best, Norman
Created attachment 11555 [details] testcase to trigger the bug. The testcase display a frame with two instances of class PointGridCanvas.# The left instance draws a grid consisting of 1-pixel wide lines, the right instance uses the special case of 0-pixel wide lines. The latter one results in 1 pixel points on the reference implementation, and invisible lines on classpath cvs 2006.05.31.
Seems to have been fixed some time in the past months