I am creating a program that takes several minutes to run and I want to either tell the user about updates via a textbox at the bottom or via a JProgressBar. Unfortunately, the GUI seems to lock up while it is running. Which means, the program appears to have frozen but it just doesnt let you do anything until it finishes. For example, the JButton stays in its selected state until the program finishes and all the GUI items become unresponsive. The JTextArea at the bottom I attempted to use to update does not update its text until the the program finishes. I attempted to give it a JProgressBar, but the JProgressBar pop-up came up when the program started but didnt finish creating the Frame (just made a transparent frame) and when the program finished, it just gave a 100% finished JProgressBar.
What can be done about this? It will be hard to use a program when the user might get scared it froze.