I am working in eclipse using Swing Jframe. I currently have an upload button, that when clicked I need for it to allow the user to browse for an image and upload (Technically copy and rename it) it to a folder within my Java project called images. I will then reference the the file paths at a later time and display the images. Any help would be amazing!
JButton uploadButton = new JButton("Upload...");
uploadButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
//TODO
}
});
uploadPanel.add(uploadButton, BorderLayout.SOUTH);
return uploadPanel;