I have a program that lists files in a directory (on a JList). I also gave an option to delete the file the user has selected. However, when the file is deleted, the list doesn't update. How would I get it to update automatically after the file is deleted (preferably by reloading the list somehow)?

