aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Cursor issues in JTextarea Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Cursor issues in JTextarea" Watch "Cursor issues in JTextarea" New topic
Author

Cursor issues in JTextarea

Arka Sharma
Ranch Hand

Joined: Jun 15, 2011
Posts: 103
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

Joined: Oct 27, 2005
Posts: 19670
    
  18

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cursor issues in JTextarea