• Post Reply Bookmark Topic Watch Topic
  • New Topic

replacing the regular writing cursor for the system mouse pointer when hovering a JTextField?  RSS feed

 
fredy salgado
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I hover over a JTextField, I want to change the writing cursor from this to the system regular mouse pointer. How could I do it?
 
Rob Camick
Ranch Hand
Posts: 2801
15
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add a MouseListener to the text field and handle the mouseEntered event:

 
fredy salgado
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Camick wrote:Add a MouseListener to the text field and handle the mouseEntered event:



Thanks! It worked.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!