I'm creating a simple text editor in Java, I want to be able to allow the user to select the type of file to open or save in the JFileChooser, I don't know how to set the FileFilter to allow multple types. Can anyone point me in the right direction? Right now I can only get it to choose either text files ".txt" or all files. I want to be able to save as .html, .php, .rb. etc. I have googled the JFileChooser filefilter and can't seem to find an example or how to. Can you help?