aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Set Cursor
 
Similar Threads
NX: Mouse cursor
HTML link on a JLabel or something
to change cursor symbol in JTable cells
What is the expected behaviour of the cursor when a dialog appears?
hwo to use system cursors like the hourglass