Check out example codes for "java joptionpane.showinputdialog cancel button". It will help you in understanding the concepts better.

Code Example 1

if(input == null)   
{
    throw new EmptyFieldsException();
}

Learn ReactJs, React Native from akashmittal.com