Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

FileDialog with a choice of formats to save a file  RSS feed

 
Edward Morris
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I get the FileDialog to work in such a way that it gives a dropdown menu with a list of formats like *.txt, *.pdf, *.tpl etc. instead of the annoying default *.* All files?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like the AWT FileDialog doesn't support it. The Swing JFileChooser does.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!