• Post Reply Bookmark Topic Watch Topic
  • New Topic

Turning off FocusTraversable for a JTextArea

 
Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to turn off the FocusTraversable for a JTextArea?
 
Warren Dew
blacksmith
Ranch Hand
Posts: 1332
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, create a subclass and overridde isFocusTraversable() to return false. Feel free to modify and use the following tested code:

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!