Skip to content
Advertisement

How to save an image using JFileChooser

Background info: I’ve made a program that uploads an image using JFileChooser and have made fill in the space of the JFrame.

My Question: I’ve attempted implementing my method on a save button and so far I can pull up the JFileChooser but it will not actually save the image. So how would I go about saving the same image I previously uploaded using JFileChooser? I’ve seen many examples but don’t really understand them.

My browse img code:

JavaScript

My save img code:

JavaScript

Updated save img code:

JavaScript

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement