title: JFileChooser that will only select java supported image file formats
body: <p>I am going to develop a project where i only have to select the java supported image file formats for further image processing. Can anyone please suggest me that how to do this.. </p>
  
  <p>i already know about the following code that will select .bmp file formats..</p>
  
  <pre><code>    JFileChooser fileOpen = new JFileChooser();
      FileFilter filter = new FileNameExtensionFilter("bmp files", "bmp");
      fileOpen.addChoosableFileFilter(filter);
      int ret = fileOpen.showDialog(null, "Open file");
      if (ret == JFileChooser.APPROVE_OPTION) {
  
      } else {
  
      }
  </code></pre>