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.. 

i already know about the following code that will select .bmp file formats..

```
    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 {

    }

```