Diálogo de error de muestra Java

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