Why wont setText() work?

I created an ActionEventListener for a button in one of programs and after if(clickmeButton.equals(what) {I put: HelloAgainLabel.setText("response") but the Label wont change. Why is that?
[209 byte] By [drtbker2001] at [2007-9-26 4:21:35]
# 1

Are you sure that you're getting to the code that sets the text? If so then try this: Add these 3 lines right after the setText call:

HelloAgainLabel.invalidate();

HelloAgainLabel.validate();

HelloAgainLabel.repaint();

That will force an immediate repaint on the label.

Greg_B at 2007-6-29 17:25:51 > top of Java-index,Archived Forums,New To Java Technology Archive...