I have a test field, on which I have a focus listener (listening for focus lost event). I also have a Jbutton with and action listener. When i enter something in the text field and click the button (cursor still in text field), my focus listener receives the event but my action listener doesn't. Why ? Second, actually in my program, I don't mind this behavious, except that my JButton still looks like it is selected (not focussed, selected!) - How do I get this to go away ???
posted 15 years ago
It is bacause I am showing a dialog box in the focusLost method. I still need the selection on the button to go - any suggestions welcome.