Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Focus / Action Listener combo question  RSS feed

 
Sharada Sreeram
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ???

TIA
Sharada
 
Sharada Sreeram
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks
Sharada
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!