/* Show supported file types */


import javax.imageio.*;
String[] types = ImageIO.getReaderFormatNames();
String list = "";
for (int i=0; i<types.length; i++) {
	if (i != 0) list += ", ";
	list += types[i];
}

JOptionPane.showMessageDialog(window, list, "Supported file types", JOptionPane.INFORMATION_MESSAGE);
