Swing Refresh problem
- From: "Srikanth" <sri1025@xxxxxxxxx>
- Date: 29 Nov 2005 03:45:41 -0800
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.
.
- Follow-Ups:
- Re: Swing Refresh problem
- From: Roedy Green
- Re: Swing Refresh problem
- Prev by Date: Re: Strange behaviour of JTabbedPane
- Next by Date: Re: how to get renderer component from currently selected node
- Previous by thread: automatically not manually
- Next by thread: Re: Swing Refresh problem
- Index(es):