• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in mouse pointer

 
Kamal SampathKumar
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have JButton in on Internal frame which when clicked brings back a resultset from a a database which is displayed in a JTable in an another internal frame.
The problem is i am trying to change the cursor to wait mode when the button is clicked by invoking method
I have given this command in actionPerformed method
setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR ));
but it makes no difference.
What mistake i have done ?
Thanks for any help
Regards
Kamal
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this
setCursor(new Cursor(Cursor.WAIT_CURSOR));
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!