We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have a custom file type that my program can save as, but currently I can not figure out how to use the drop down menu of file name extensions to limit my users to only saving (and opening for that matter, but thats another question) files with a specific file extension. How do I do this?
Answers
https://docs.oracle.com/javase/tutorial/uiswing/components/filechooser.html
https://processing.org/discourse/beta/num_1263569258.html
and in the source code:
https://github.com/processing/processing/blob/master/core/src/processing/core/PApplet.java#L6469
Kf
after a brief scan through the links it appears that the top link might work, but it uses the wrong file browser, I would prefer if it used the one in my screen shot, the second link appears out dated, and I will have to do some digging through that 3rd link some more, I may be able to mine the code in there for my own implementation if the current implementation is lacking.
Chrisir that will probably work if I cant fine another way..... but I would prefer to use the drop down menu
I don't know - see a messy discussion here:
https://stackoverflow.com/questions/596429/adjust-selected-file-to-filefilter-in-a-jfilechooser