Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

requestFocus is not working  RSS feed

 
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?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!