Read mask from a JFileChooser.