Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

requestFocus question (not too urgent but I am curious)  RSS feed

 
Rob Michaelson
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to put the focus on my "input" textField after the user clicks the "discard" button (RightAction)
Right now, this is what I have:

Any suggestion? It is not returning the cursor to the input textField
Thanks
Rob
 
Barry Andrews
Ranch Hand
Posts: 529
C++ Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have more code to post? You should post everything you have, because right now no one can tell who is calling your requestFocus() method or even what the object input is.

Barry
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm moving this to the Swing / JFC / AWT forum...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!