版权声明:原创不易,转载请注明出处~ https://blog.csdn.net/qq_34266804/article/details/88354692
Object[] options = { "确定" };
JOptionPane.showOptionDialog(null, "开始时间晚于当前时间,不合法", "Warning",
JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, null, options, options[0]);