I'm new to using Swing, so I'm not exactly sure how to correctly implement what I'd like to do so I'll explain what I'm trying to do...
I've written some code that scans a file system for certain file types on start. I'm now going back and trying to rework this to use a GUI rather than simply run in a console. What I'd like to do is render the GUI on the screen (with a jList) and then execute the scan (with the scan updating progress in the GUI and adding the returned file paths to the jList).
From what I'm able to tell, simply adding a call to my scan method will basically freeze the GUI so I'll likely need to create another thread and update the GUI from there? Any tips or suggestions? Do I make the call for the scan from main() or somewhere else?