joptionpane fonctionnement java

Java
JOptionPane d = new JOptionPane();
d.showMessageDialog( laFrame, "le message", 
      "le titre", messageType);

Source

Also in Java: