Hello Friends
I am getting this error when using this code in JOptionPane
"
String text = JOptionPane.showInputDialog(this, message);
if (text.equals("yes"))
{
JOptionPane.showMessageDialog(this,"TEXT ENTERED IS YES");
}else if (text.equals("no"))
{
JOptionPane.showMessageDialog(this,"TEXT ENTERED IS NO");
}else if(text.equals("")){
JOptionPane.showMessageDialog(this,"U DIDN'T ENTERED ANY TEXT");
}
"
Actually when i am clicking Cancel i am getting this EXCEPTION
can any tell how to solve or is there any return type to catch when click
CANCEL button..