Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to change cursor when need to open a new dialog?

1011133May 27 2013 — edited May 28 2013
Hi,

I try to change cursor to WAIT when client open a new dialog, which it tell user the program was running to ready display new dialog.

My code was like the following

scene.setCursor(Cursor.WAIT);
someclass.showMyDialog(); // The dialog was a new stage with StageStyle.UTILITY style
scene.setCursor(Cursor.DEFAULT);

But the cursor didn't be changed, I didn't know it why? Anybody know it? thank in advance!

I had search the google, and didn't find the perfect answer, most of they was like to use setCursor(Cursor.WAIT) mode.

the current ENV in my host was: windows 7 and Java

java version "1.7.0_13"
Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

Best regards,

Edited by: user13005878 on May 27, 2013 1:48 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 25 2013
Added on May 27 2013
4 comments
1,653 views