Hello!

Purpose: in the JFileChooser window, in the "Files of type:" menu, make sure that there is only one, not changeable format.

Item All Files removed ( fileChooser.setAcceptAllFileFilterUsed(false) ), now instead of All Files - emptiness. And the 2nd in the list is already my format.

alt text

How to make it so that my format was in default and could not be changed?

    1 answer 1

    We carefully read this tutorial , after which we pay special attention to creating our own FileFilter.

    • own FileFilter is all turned out to be very simple fileChooser.setFileFilter (ff); Thank you for your attention to the question. - javadranik