Instead of getOwner try to get the Parent Window and set the cursor for that
for this particular process. May be that would help.
Also if problem comes when you move the mouse out of the window in that case
you may need a focus listener.
Thanks and Regards,
Gary Grewal
-----Original Message-----
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: 5/7/01 4:12 AM
Subject: wait_cursor
Using JDK 1.1.8 and SWING 1.1.1
We are having some troubles with the showing of WAIT_CURSOR
We are doing like shown here
Cursor old_cursor = this.getOwner().getCursor();
Cursor cursor = new Cursor(Cursor.WAIT_CURSOR);
this.getOwner().setCursor( cursor );
try
{
//some process
}
finally
{
this.getOwner().setCursor( old_cursor );
}
this works fine when adding a new frame or something, but when for
instance
we have a dropdownbox and a selection causes a proces, nothing happens,
no
new cursor, although the above code results in no errors in debug-mode.
anybody has a good tip for cursorshowing, i would be very happy to hear
them.
TIA
Peter Tilsted
Projekt Storkundel�nsomhed, 5094
tlf: +45 3333 4982
Email: [EMAIL PROTECTED]
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing