JAVA 中提供如下消息提示框:
JOptionPane.showMessageDialog(newFrame.getContentPane(),
"弹出的是消息提示框!", "系统信息", JOptionPane.INFORMATION_MESSAGE);
JOptionPane.showMessageDialog(newFrame.getContentPane(),
"弹出的是警告提示框!", "系统信息", JOptionPane.WARNING_MESSAGE);
JOptionPane.showMessageDialog(newFrame.getContentPane(),
"弹出的是错误提示框!", "系统信息", JOptionPane.ERROR_MESSAGE);
JOptionPane.showMessageDialog(newFrame.getContentPane(),
"弹出的是询问提示框!", "系统信息", JOptionPane.QUESTION_MESSAGE);
转载自:http://hi.baidu.com/huaigangkang/item/1d816c32036a2bf2a8842898