我只需要在showConfirmDialog中有一个按钮。我试过这个:intresponse=JOptionPane.showConfirmDialog(null,"TimeEnteredSuccessfully","",JOptionPane.OK_OPTION,JOptionPane.PLAIN_MESSAGE);if(response==JOptionPane.CLOSED_OPTION||response==JOptionPane.OK_OPTION){System.out.println("CLOSING>>>>>>");}但这显示带有Yes_No_option的对话框。我只