Hi all,

I'm having a bit of a problem implementing a GUI and have no experience in multi-threaded programming. Here's the what I need to do:

-Open GUI with file chooser

-After user has selected 2 files, return control back to Main, along with an array of the selected files/file names.

I'd imagine this is pretty simple, but I have no idea how to do it. How can I keep a loop going until the files are selected, and then pass that back to Main?


Thanks for the help!

I'm confused as to what you need multi threading for, swing has a filechooser class, (JFileChooser) that supports choosing more than one file, and returns those files in an array. You don't need to make a new thread, just open the file chooser and let it do it stuff

commented: a clear and simple +3