wood burning stoves 2.0
The moose likes Swing / AWT / SWT and the fly likes requestFocus is not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "requestFocus is not working" Watch "requestFocus is not working" New topic

requestFocus is not working

Devasia Manuel
Ranch Hand

Joined: May 13, 2008
Posts: 57
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

Joined: Oct 21, 2008
Posts: 43
Can you post a relevant segment of your code?
I agree. Here's the link: http://aspose.com/file-tools
subject: requestFocus is not working
jQuery in Action, 3rd edition