troubleshooting Question

image resize and save - Java

Avatar of Kyle Hamilton
Kyle HamiltonFlag for United States of America asked on
19 Comments1 Solution501 ViewsLast Modified:

I'm trying to write a (hopefully) simple java application that allows the user to select a bunch of images on their hard-drive, resize them, and save them to a folder on their hard-drive. (it will not be web based - just a local app)

I've gotten as far as selecting the image files, and displaying the file names as a string in JScrollPane. (by using a toString method I wrote: toString(files))

I have a separate SaveImage class that does the saving, but only one hardcoded file at a time:

saveButton.addActionListener(new SaveImage("strawberry.jpg"));

How do I pass all the file names to the save button?

(please bear with me, I'm trying to learn)

Join our community to see this answer!
Unlock 1 Answer and 19 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 19 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros