Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cursor issues in JTextarea

 
Arka Sharma
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Following code I have written is having some issues when i press arrow key in side JTextarea.


What i want is that cursor will behave like linux terminals.I guess I have not implement damage method correctly.

Regards,
Arka
 
Rob Spoor
Sheriff
Pie
Posts: 20527
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out NavigationFilter instead. This class can be set for text components, and disallow the caret to be set at certain locations. However, you would have known that you could use this class had you gone to the Protected Text Component link that Darryl mentioned in your previous thread.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic