📅  最后修改于: 2022-03-11 14:52:28.033000             🧑  作者: Mango
int dialogResult = JOptionPane.showConfirmDialog(frame, "Text", "Title", JOptionPane.YES_NO_OPTION);
if(dialogResult == JOptionPane.YES_OPTION){
// Do something
}