Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

requestFocus is not working

 
Devasia Manuel
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JFrame with a text field inside it. When I run the program, the JFrame appears normally. In my program, I have repeatedly asked the JFrame and text field to requestFocus. However, when I click on another window, the JFrame loses focus for a second but regains it again. However, when I type, the letters don't come in the text field.

How can I make it so whenever I type, the text should only appear in the text field.
 
Brian Lang
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post a relevant segment of your code?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic