How to fix blinking/flashing
问题 Simple program that counts every time you click, however the image seems to blink/flash when clicked too fast. import java.awt.*; import java.awt.event.*; import java.awt.Graphics; import javax.swing.*; import java.lang.Object; import java.net.URL; import java.lang.String; import java.awt.Font; public class Spaceship extends Canvas { private Font font1; int myX = 100; int myY = 400; int count = 0; These are the 2 images that flash, the images used shouldn't matter though. Image img1 = Toolkit