• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextField Focus issue  RSS feed

 
Rahul Kappor
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using following code to set focus on a text field on my applet in applet init method. For some reason it does not work. I am using JRE 1.5.0_11. This used to work with JRE 1.4.2.

// code to set focus on the text field.
jtDocketCode.requestFocus()

Focus appear to be on the whole applet. Cursor is in the text filed if I click anywhere on the applet. It appears that applet is not in focus and that�s why I am not able see the cursor in the text field.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!