my dog learned polymorphism*
The moose likes Beginning Java and the fly likes Set Cursor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Set Cursor" Watch "Set Cursor" New topic
Author

Set Cursor

kate damond
Ranch Hand

Joined: Apr 17, 2001
Posts: 77
Hi,
I want to set the cursor to WAIT_CURSOR, while my applet is waiting for data back from its servlets.
I've got as far as this (test) code ..

I was thinking that this would ... set the cursor to the egg-timer thing .... print out a load of rubbish..... set the cursor back to the default.
What it actually does is ....first print out a load of rubbish.... leave the cursor as it is until the print "Rubbish" has finished ... not update the cursor until it gets moved about after the Rubbish has finished.
Any ideas why printing stuff out takes precedence over the cursor update ?
Cheers,
Kate

Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Works just fine for me. Perhaps you just weren't giving it enough time to re-paint itself so that you could notice it.

I used:


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
 
subject: Set Cursor