I'm trying to update a JTextArea using the .append. I'm sending in a string to the method from another class and I know the textBox method gets the string as I can use .println to test it. The only thing is it does not update the JTextArea which is strange as when I first start the program and the gui is being created i'm able to update it.
public void textBox (String text){
textArea.append(text);
}
Does anyone have any ideas? Many thanks in advance.