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);
                }
            }
        });
This is my code. How to I set the "No" button in JOptionPane requestFocus?