Java Swing Package usage Example:
To show a Simple Dialog in Java .
/**
*
* @author Muhammad Farrukh
*/
import javax.swing.*;
public class JavaDialog {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
JOptionPane.showMessageDialog(null, "You are Visiting \n\n digicom007.blogspot.com");
JOptionPane.showMessageDialog(null, "Thank You to visit my site");
JOptionPane.showMessageDialog(null, "By The Owner \n Muhammad Farrukh \n BSCS\n 7th Semester\nVirtual University of Pakistan");
System.exit(0);
}
}
Output if this sample code will be:
No comments:
Post a Comment
“You can't change the past, but you can ruin the present by worrying about the future”