Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Wait Cursor  RSS feed

 
Michael Tew
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!