I tried some Zenity command for file filtering in my java program. and But these are not worked properly . insted of giving the all filtered file it only give the first file type given in the comment ,thant means; in these, it given back only the .gif file as the output) . Answer Could you try something like this;