Thursday, 16 May 2013

JOptionPane.showMessageDialog....

This is the Simplest Example for the Message dialog box , You can use this any where in any Program for the message / display or the results ,


/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package demo;

import javax.swing.JOptionPane;

/**
*
* @author saeed
*/
public class Demo {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
JOptionPane.showMessageDialog(null, "This is the Test Message", "Hello", 2, null);
}
}

No comments:

Post a Comment