in function i have written
for (int i=0;i<100000;i++)
{
thread.sleep(50);
}
return "ok";
on one button click i call this function so that i wont able to click another button on my form how i can achive that
Message was edited by:
NikisinProblem
> in function i have written
> for (int i=0;i<100000;i++)
> {
> thread.sleep(50);
> }
> return "ok";
Well that sure is some shitty code.
> on one button click i call this function so that i
> wont able to click another button on my form how i
> can achive that
By not doing eveything in the Swing event thread?
It is still very unclear what you are trying to do. All that is clear is that you don't know much about threading.
You're going to have to try harder to explain what you want to do, what you have done and what is happening. Posting sentences with no punctuation and shitty code does not help with this.