Friends, In a dialog, I have a text field. I want to have focus in it, whenever the dialog shows. should I have jtxtseat.requesFocus() called before showing or after showing? sometimes even if the cursor blinks, I am not able to type data w/o clicking on the field once. why is it so? Help me.