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.

[784 byte] By [leiko73] at [2007-9-26 4:38:32]
# 1
Try calling validate() after adding text, i.e.public void setCreateDisplay(String tempString){txtDisplay.append(tempString);txtDisplay.validate();}Hope this works for u
isjm at 2007-6-29 17:58:24 > top of Java-index,Desktop,Core GUI APIs...