作者:佚名 | 来源:网络 | 添加时间:2007-03-18 12:06:42 | 人气:1837
|
package T;
import javax.swing.JOptionPane; public class InputDialogDemo { /** Main method */ public static void main(String[] args){ // Prompt the user to enter a year String yearString = JOptionPane.showInputDialog(null,"Enter a year", "Input (int)", JOptionPane.QUESTION_MESSAGE); } } |