aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "requestFocus is not working" Watch "requestFocus is not working" New topic
Author

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
 
Similar Threads
Setting a request focus on a button. HELP!
how can i set the focus?
JTextArea Scroll Focus
JInternalFrame to get Focus
Plz help! Not able to get focus on text field!!