How to draw a continuous curve of repeated ovals on speedy mouse cursor dragging?
问题 This code is for drawing on a JPanel. In the paintComponent(Graphics) I am trying to draw curves via repeated Graphics2D#fillOval(x, y, with, height) . The app is working OK, and when I drag the mouse cursor slowly; it draws a continuous curve as I need. But when I speed up dragging the mouse cursor, the result is separated dots and not a continuous curve. So how to make it draw a continuous curve even if I speed up dragging? import java.awt.*; import java.awt.event.*; import java.util