• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTextField

 
francis varkey
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sirs,
How to view the cursor of JTextField, which is not Editable.
Only for just vewing.

thanks,
Francis
 
sammaiah kyatham
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add MouseMotionLister to the JTextField and set the cursor whenever mouse moved to JTextField.

Is this makes sense??

Cheers,
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
set a new caret, overriding isVisible() to return true
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic