Use FileDialogs rather than JFileChoosers.