Possible Duplicate:
several times change label text by clicking button in swing not work
I am using Java Swing to develop a GUI in which I use two components JButton and JLabel. The text of JLabel is initially set to "Click the button". After clicking the button I want the text of JLabel to change to "Processing".And finally to "Processed"
So, when I click the button the control goes to ActionPerformed wherein I have set the text of JLabel to "Processing" using setText() method. The last statement in ActionPerformed is setting the text of JLabel to "Processed" using setText().
When I run the program the label shows "Click the button".In the end it changes to "Processed". However, it never displays "Processing".