Changing GUI labels from another class
I'm trying to get this GUI window to start a process and then have that process set the text on a label in the gui just to keep the user aware of what the system is currently doing.
As a result I've been trying to set the text of a JLabel from another class.
So far I have a method like this in the gui:
public void setLabel(String newValue)
The gui hands itself to the next class like this:
I then try to call the setLabel method from inside the run object:
Run run = new Run();
The problem with this setup is that it only seems to update the JLabel once the process is finished running. Why does this happen?