Java Afficher la boîte de dialogue d'erreur

JFrame frame = new JFrame();
JOptionPane.showMessageDialog(frame, "Eggs are not supposed to be green.");
Inquisitive Iguana