• Post Reply Bookmark Topic Watch Topic
  • New Topic

JFileChooser  RSS feed

 
rama krishnan
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to append the jpg extension with JFileChooser while saving the file
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't quite understand the question. JFileChooser doesn't save a file - it lets you select a place where to save it, and a name for it. You can append an extension during the actual saving after the JFileChooser dialog has been closed.
 
Rob Spoor
Sheriff
Posts: 21095
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can extend JFileChooser and override approveSelection, and do anything you want. In pseudo code:
 
rama krishnan
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!