Hello!
>have you tried yourJTextField.requestFocus()
Thanks! I had also to add a ComponentListener to detect when the
dialog is shown, like:
this.addComponentListener(
new ComponentAdapter() {
public void componentShown(ComponentEvent e) {
myJTextField.requestFocus();
}});
bye
longoja@yahoo.com - 14 Feb 2006 14:54 GMT
Also, you should use requestFocusInWindow(), I believe the other is
deprecated now, just an FYI>