Swing Refresh problem



Hi All,

I don't know what subject line i should use for my post. But anyways,
this is my problem.

When a button (JButton) is pressed, it's stays pressed till the
actionPerformed() method is completed for that button. So what I did
was, I disabled the button as soon as I entered the actionPerformed()
for this button (so that it gives some indication to the user that
something is happenning in the background), and then I did my work for
the button, and then I enabled the button back.

I thought this will work, but it didn't, the button won't disable and
it still stays pressed... What could be the problem???. Do I have to
call a repaint() or anything like that.

Thank you very much.
Srikanth.

.