• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

simulate enter key in jtextfield

 
mark goking
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi... if anyone has done this before and made it work

please do share your code

i tried this code but it doesnt work

 
Peter Taucher
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And what would it be that you want to achieve with this piece of code? Why not use the Robot class?
-> http://download-llnw.oracle.com/javase/6/docs/api/java/awt/Robot.html
 
mark goking
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i got it though. i wanted to avoid using robot ;)

please close this thread
 
Campbell Ritchie
Sheriff
Pie
Posts: 49367
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We don't close threads unless there is something "wrong" with them. You never know, somebody might have a better suggestion in future.

Please click the "mark as resolved" button with the tick at the lower left.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic