Sunday, March 25, 2007

How to use JOptionPane

//call class JOptionPane
import javax.swing.JOptionPane
public class MyPane
{
public static void main(String args[]
{
JOptionPane.showMessageDialog(null,"Welcome to JOptionPane","JOptionPane",JOptionPane.INFORMATION_MESSAGE);
}

}

No comments: