Hi all, I have a problem in getting focus for a textfield. I have given requestFocus() and also getCaret().setVisible(true) I am able to see the cursor but there is no focus for the textfield. I have included TF.requestFocus() and TF.getCaret().setVisible(true) when I add that TF to a panel in the constructor. What is the problem with my coding. Thanks in advance. Anu
posted 14 years ago
Have u tried adding FocusListener to the textfield, it should work.