• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextField Focus issue

Rahul Kappor
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.

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.
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!