Is repaint executing too slow?
问题 I have the following: import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JLayeredPane; import javax.swing.JFrame; import javax.swing.BorderFactory; import java.awt.event.MouseListener; import java.awt.event.MouseEvent; import javax.swing.ImageIcon; import java.awt.GridLayout; import java.awt.Dimension; import java.awt.Color; import java.util.Random; class Cell extends JLayeredPane { private JLabel image1; private JLabel image2; private JLabel image3; private Random rand;