Please help me with an issue I have. I have a button and when user click it, it does some calculation in another thread and I am doing fine on that part. But I want the cursor to change to hour glass and also setEnable( false ). I don't know why but when I first click the button, the cursor is changed to hour glass but as soon as I move the mouse, it change back to the default. My component on the screen will not be enable until the other thread has finish the calculation. Here is the code
what I really confused about is when I comment out
the cursor will stay as hour glass and will not change back until the calculation has completed. but this is not desireable because even if the cursor is hour glass, the user can still click a button and leave the screen before the calculation has completed. Please help me if you have any experience with issue before.