if(s.equals("Skip"))
{
JOptionPane.showConfirmDialog(rootPane, "Are You Sure...??");
}
这是我的代码,我想从显示确认对话框中获取命令。如果是,则跳过,如果否,则不跳过,如果取消,则对话框将取消。
最佳答案
JOptionPane.showConfirmDialog(..)
Returns: an integer indicating the option selected by the user
关于java - 如何从显示确认对话框获取操作命令?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22877314/