My program allows you to save an image that has been made. I only have to save it as a png.
I currently have:
...
File file = fc.getSelectedFile();
try{ ImageIO.write(result.getImage(),"png",file);}
...
It saves the image and I am able to open it back up in my program, BUT it doesn't show the .png at the end of its name. The sample images (given to us, not made by the program) show .png on my JLabel, so I know its something to do with how i'm saving them.
I have tried the answer here but that didn't work.
How do I fix this?
(and side question: what is the point of even putting "png" if write is just going to ignore it?)
Thanks!