It's not a secret anymore!
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

Set Cursor

kate damond
Ranch Hand

Joined: Apr 17, 2001
Posts: 77
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 ?

Cindy Glass
"The Hood"

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
I agree. Here's the link:
subject: Set Cursor
It's not a secret anymore!