JOptionPane when called from inside the paintComponent() method

Printable View