int option = JOptionPane.showConfirmDialog(null,"Save changes ?/n(MUST choose Yes or No)", "File has been changed!", JOptionPane.YES_NO_OPTION);
switch(option) {
case JOptionPane.NO_OPTION :
System.exit(0);
break;
case JOptionPane.YES_OPTION :
if(fns == null) {
if(saveNewFile()) {
System.exit(0);
}
}