JFrame only shows components at first creation
问题 When I start my application it opens a JFrame (the main window) and a JFilechooser to select an input directory, which is then scanned. The scan method itself creates a new JFrame which contains a JButton and a JProgressBar and starts a new Thread which scans the selected Directory. Up until this point everything works fine. Now I change the Directory Path in my Main Window, which calls the scan method again. This time it creates another JFrame which should contain the JProgressBar and the