Save as ... default extension

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
david

Save as ... default extension

Post by david » Sat Mar 16, 2002 12:41 am

other question: the JFileChooser for save as have a default extension (jpg or png) when the user don´t write the extension?

David Gilbert

Re: Save as ... default extension

Post by David Gilbert » Sat Mar 16, 2002 8:16 am

The default extension is set for the file chooser in the doSaveAs(...) method in the JFreeChartPanel. But the code is not adding the extension to the filename if the user doesn't enter it...this was my intention, but thinking about it now it probably should add the extension. IS that what you meant by your post?

Regards,

DG.

david

Re: Save as ... default extension

Post by david » Sat Mar 16, 2002 5:50 pm

Very thanks DG, this question is solved.

David

Locked