posted 14 years ago
I am maintaining some old code in version 1.1.2. In an actionPreformed event handler activated by a button on a Dialog I would like to set the cursor to the WAIT_CURSOR while a login is attempted for a password change. When I add 'setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR))' to my event handler before the login and 'setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR))' at the end of the event handler, the cursor will not change on the screen unless the mouse is moved while on the Dialog box. I am using AWT components. Is there a way to change to the WAIT_CURSOR and back without having to move the mouse? The ActionEvent I listen for is pressing the Enter key. I am useing Jbuilder1.