Hi! I have made a simple example.
Graphics g = canvas.getGraphics(); g.setColor( Color.WHITE); if ( e.isControlDown() ) g.drawOval(start_point.x, start_point.y, end_point.x - start_point.x, end_point.y - start_point.y); else g.drawRect(start_point.x, start_point.y, end_point.x - start_point.x, end_point.y - start_point.y); //swap canvas buffers canvas.swap(); .... The rectangle is drawing normally but the oval is blinking during the draw.
Is this a bug or a feature? Best regards!
Andrei Moisseev
|
GraphicsDraw.java
Description: Binary data