Display MessageBox (Java Program)

/** This application program displays Welcome to Java
 * in a message dialog box.
 */
import javax.swing.JOptionPane;
public class WelcomeInMessageDialogBox{
    public static void main(String[]args){
        //Display Welcome to Java! in a message dialog box
        JOptionPane.showMessageDialog(null, "Welcome to Java!", "Display Message", JOptionPane.INFORMATION_MESSAGE);
    }
}
Download Full Project

Comments

Popular posts from this blog

Open Notepad (Java Program)