This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have created a tabbedpane with 3 tabs (Tab1, Tab2, Tab3) . Mnemonic (ALT-F) is assigned only to the Tab1.
If any of the component is selected inside the Tab2 or Tab3, it can still traverse back to Tab1 on pressing key ALT-F. But if any component is selected in the Tab1 itself, pressing ALT-F will not take me back to Tab1. I have to somehow get the focus for Tab1 too.
Here is my code. Just copy-Paste to run it. Please provide assistance.
Note: I don�t want to set Mnemonic to each Tab. Only one Mnemonic should do my work.