Board index » jbuilder » requestFocus and JTextField
Bruce Houghtron
![]() JBuilder Developer |
requestFocus and JTextField2007-06-13 12:04:25 AM jbuilder1 To all; I'll be dammed if I can get Focus on a JTextField at Load Time. I've tried everything(it seems). requestFocus, requestFocusInWindow, requestFocus(true).... I have two JDialog's, one with a JList, and one without. The one without works fine. One of the symptoms is that when I key something in, just after load time, I get an "valueChanged" from the ListSelectionListener. I put a "requestFocus()" then a getFocusOwner() after the init is complete. The getFocusOwner() shows "null". Like I say, it seems as if I have tried everything and read everything I can get my hands on... So far no luck.. Bruce Houghton |