this.addWindowListener(new WindowAdapter()
{
@Override
public void windowClosing(WindowEvent e)
{
int par1 = JOptionPane.showConfirmDialog(null, "Are you sure you want to exit", "Exit?", JOptionPane.YES_NO_OPTION);
if(par1==JOptionPane.YES_OPTION)
{
System.exit(0);
}
}
});
这是我的代码。如何在 JOptionPane requestFocus 中设置“否”按钮?