Check out example codes for "joptionpane fonctionnement java". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com