Mega Code Archive

 
Categories / Java Tutorial / Swing
 

Create a Message Dialog Box

import javax.swing.JOptionPane; public class Main {   public static void main(String[] argv) throws Exception {     JOptionPane.showMessageDialog(null, "I am happy.");   } }