This week's giveaway is in the Cloud/Virtualization forum. We're giving away four copies of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP and have Lucian Maly on-line! See this thread for details.
I have a container with a jframe, a jmenubar with a jmenu added. i have a keylistener added to a jbutton which is added to my container, and it all works. however, i want to add a keylistener to my jmenu, so that when the list pops up, maybe you can hit 'a' to have it jump to the items that start with a, etc etc. i tried jm.addKeyListener(this);, but under my keyTyped() method, nothing happens when the jmenu is open and i type keys. im fairly sure im using the code correctly, because keyTyped() is working for my jbutton, but not my jmenu. is there something specific i have to do in order to trigger keyevents from inside a jmenu? to make sure im being clear, im talking about typing inside the jmenu that pops up after you click on the jmenu (or in this case, run the jm.doClick() method. Thanks for your time.
This is my simple religion. There is no need for temples; no need for complicated philosophy. Our own brain, our own heart is our temple; the philosophy is kindness.<br />- Dalai Lama