How do I prevent events from stacking while JOptionPane is open?

Printable View