• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FocusListner not working on JMenu

 
rohit sen
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

This is my code. I don't see the focus events when the menu is focussed / unfocussed. Am I missing something here? How can I capture focus events on JMenuItem?



Thanks in advance
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> JMenu mItem

is not a JMenuItem
 
rohit sen
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doesn't matter if it is a JMenuItem or JMenu. FocusListener doesn't seem to work on both.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
from the Oracle site

"Menu elements do not receive focus since release 1.4."
 
rohit sen
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for that information.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic