This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Plz help! Not able to get focus on text field!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Plz help! Not able to get focus on text field!!" Watch "Plz help! Not able to get focus on text field!!" New topic
Author

Plz help! Not able to get focus on text field!!

Pradeep Kanwar
Ranch Hand

Joined: Jun 11, 2001
Posts: 38
hi,
i have 2 text field in a panel in a frame.
i want the focus (i should be able to type) to be on second (added later) textfield.
how can i do this? i have used requestFocus() method on textField, but it doesnt work.
plz help
thanks in advance.
pradi
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
I answered this in beginner.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
wood burning stoves
 
subject: Plz help! Not able to get focus on text field!!
 
Similar Threads
How to place the cursor at the end of a textfield
how can i set the focus?
how to set focus?
JtextField addKeyListener
Highlighting a JTable cell on a successful search for a value entered in a textfield.