Java Input Dialog : Sample Code
Using Swing Packageimport javax.swing.*;
/**
*
* @author Muhammad Farrukh
*/
public class InputMessage {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
JOptionPane.showInputDialog(null, "enter something");
}
}
Output of this 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”