Skip to Main Content

How to extend JFileChooser

grimrandMar 8 2022

Hi I am fairly new to Java programming, and have created some basic GUI applications. I have a JFrame that has a table based on a database that has a list of files and associated business attributes such as a notes field.
When a button is clicked a JFileChooser opens to allow files to be select which can then be added to the database and the table refreshed.
The problem is adding files from multiple folders. Is it possible to extend the JFileChooser to have a button that repeats the file selection, each time adding the selected files to a list panel below the file navigation/selection panel. So that a running list of the files form multiple folders can be seen and added to the database in a single button click.


Post Details
Added on Mar 8 2022