I think the problem is that you, ever so little, are trying to paint outside the clipping area. Depending on the stroke width, lines are drawn on both sides of the specified line. If you alter your render method as follows:
[code] public void render(final Graphics2D g2d) { g2d.setColor(Color.RED); final Rectangle r = new Rectangle(0, 0, 80, 80); Rectangle clip = new Rectangle(-1, -1, 82, 82); g2d.setClip(clip); g2d.draw(r); } [/code] you will see that the lines are always drawn correctly. In your version, only half of the width of the line can be drawn. When scaling very small and due to rounding problems, the drawing may disappear entirely. Piet [Message sent by forum member 'pietblok' (pietblok)] http://forums.java.net/jive/thread.jspa?messageID=326978 =========================================================================== To unsubscribe, send email to lists...@java.sun.com and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to lists...@java.sun.com and include in the body of the message "help".