Serve per rendere modale il JOptionPane rispetto ad una particolare finestra.