appending to TxtArea from another class
I have a class that creates an instance of my panel that contains my txtarea, and calls a method to the panel to append the string that i am passing.
Class 1:
CreateDisplayPanel cdPanel = new CreateDisplayPanel();
cdPanel.setCreateDisplay(szTransaction.toString());
In my Panel Class I have a method called setCreateDisplay:
public void setCreateDisplay(String tempString)
{
txtDisplay.append(tempString);
}
in my constructor i have
txtDisplay.setEditable(false);
txtDisplay.setBounds(10,10,575,200);
add(txtDisplay);
I have tried repaint and all kinds of combinations nothing works. Why when i call the append in the above method nothing shows up in the txtArea? Someone please help.

