I\'m trying to save a file using JFileChooser. However, I seem to be having some trouble with it. Here\'s my code:
JFileChooser
if (e.getSource() == saveMenu
You should try this:
if(!file.getName().contains(".")) file = new File(file.toString() + ".xml");