First the user browses for the zip file containing their Java project using a JFileChooser which is limited to .zip extension only.
Then I want all the file paths to be stored as strings in an array.
Browse... button:
btnBrowse.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
int returnVal = fileChooser.showOpenDialog(null);
if (returnVal == JFileChooser.APPROVE_OPTION) {
File zip = fileChooser.getSelectedFile();
// This is where the I need help.
}
}
});
So my array will be like this:
[path\to\java\file, path\to\java\file, path\to\java\file, path\to\java\file]
Can someone help me out here?