I have jframe which is having two panels.first panel the textbox and button is there and in second panel jabel is there.when i am updating text in the textbox jlabel text should be "updating....." .After completion of update operation jlabel text should be "updated successfully".But while update is ggoing on the text which i have set to jlabel is not appearing in jlabel.After completion of update operation it is showing text "updated successfully".
Sounds like a threading problem. You know that all use of Swing components must be in the Event Despatch Thread? If you have another action going on which is time‑consuming, you might do well to start another thread. Look for the SwingWorker class as one way to do that.
Joined: Oct 13, 2005
But do you want it to say “updated” before the update is completed? Look up progress bars.