public static void showInputDialog(Componet parentComponent,String message,String title,int messageType)
其中messageType的取值有如下:
JOptionPane.INFORMATION_MESSAGE
JOptionPane.WARNING_MESSAGE
JOptionPane.ERROR_MESSAGE
JOptionPane.QUESTION_MESSAGE
JOptionPane.PLAIN_MESSAGE