Hi all, Would you please tell me how to let a JFileChooser only accept one file type for example "*.jar"(I know FileFilter). In fact, I don't want that user can select "all files" in JFileChooser, but I don't know how to disable the JCombobox. Thanks ahead!
Originally posted by Steven Zeng: In fact i want that in JFileChooser user can not select "all files *.*" in file type ComBoBox. However thanks for your reply
Use - fileChooser.setAcceptAllFileFilterUsed(false); HTH, - Manish