How to change cursor when need to open a new dialog?
1011133May 27 2013 — edited May 28 2013Hi,
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