如题,并且要是模式对话框那种,一旦弹出,不能做其他动作,只有关闭后才能继续其他操作.

解决方案 »

  1.   

    JOptionPane.showMessageDialog(Component parentComponent,Object message);
      

  2.   

                                    int messageType = JOptionPane.INFORMATION_MESSAGE;
    int optionType = JOptionPane.DEFAULT_OPTION;
    String message = "";
    String title = "密码错误";
    message = "请重新输入!!!";
    JOptionPane.showConfirmDialog(frame, message,
    title, optionType, messageType);