I know a way of adding a file extension in FileChooser in javafx:
FileChooser chooser = new FileChooser();
chooser.getExtensionFilters().add("JPG Files(*.JPG)", "*.jpg");
But is there any way I can do this without any description
argument and just care about the file extension?