• Post Reply Bookmark Topic Watch Topic
  • New Topic

detect a {

 
Gizzmo Zeuzere
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know how to detect a { in a JTextArea when anybody types it. Can anybody help me ?
 
Rene Liebmann
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
this is easy. Add a key listener to your TextArea.
Then listen for keyTyped.

Maybe there are different ways too?
 
Gizzmo Zeuzere
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank u !
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!