Im new editating JOptionPane buttons so i have & JOptionPane.showInputDialog that needs to be closed when i click cancel button, the issue is that i've a Exception that shows Error creating the file if i click it, i just need the JOptionPane.showInputDialog closed when i click cancel (doing nothing), i can't assing a value like 2 that means close window.
here's the code that i've done.....
if(Integer.parseInt(JOptionPane.showInputDialog(this,"Capture File Name","Mandatory Filed",JOptionPane.ERROR_MESSAGE))
== JOptionPane.CANCEL_OPTION){