show multiple MessageDialog at a time
问题 I am trying to make a program that displays 3 MessageDialog boxes at a time. I thought that if you put JOPtionPane.showMessageDialog in an actionListner class for a swing timer , it would show a new MessageDialog box every second. So here is the code that I came up with: package pracatice; import java.awt.event.*; import javax.swing.*; public class practice extends JFrame { public static int num = 0; public static TimerClass tc = new TimerClass(); public static Timer timer = new Timer(1000,