How can i fix if else statment error on my code, please read the discription first
<p>This is the code, which helps to display confirm dialog box on screen, First if statement just checks which radio button are pressed, than a confirm dialog box appears, On which there is option available , which is "ok" and "cancel". SO when i click either "ok" or "Cancel"  another confirm dialog box appears, which must have to show message, which shows which one is clicked, <strong>but there is an error</strong>, even if i click "ok" , it shows <strong>you pressed cancel</strong></p>

<pre><code>if (Choose == okCancel.getText() &amp;&amp; IconChoose == NoneRadioButton.getText())
{
    int response = 
        JOptionPane.showConfirmDialog(null, txt, " Message Dialog Box", 
                                      JOptionPane.OK_CANCEL_OPTION);
}
else if (response == JOptionPane.OK_OPTION)
{
    JOptionPane.showConfirmDialog(null, "You Pressed OK ","", 
                                  JOptionPane.DEFAULT_OPTION);
}

if (response == JOptionPane.CANCEL_OPTION)
{
    JOptionPane.showConfirmDialog(null, "You Pressed CANCEL ","",
                                  JOptionPane.DEFAULT_OPTION);
}
</code></pre>
