Note that there are some explanatory texts on larger screens.

plurals
  1. POLWUIT Tab navigation/list focus issue
    text
    copied!<p>I have embedded 3 'TABS' on top of a form. Each tab has a 'LIST'. Whenever I change focus from one tab to another, I want my lists to have focus. How do I ensure that my lists always have focus? I navigate using gameKeyEvents. I have added an actionListener to my form for game key events. I cannot override the keyReleased() method of the form as I need to add an action listener to my form(it contains other commands too).</p> <p>I tried overriding the keyreleased() method of my ‘Tabs’ class , but thats not working(WHY??). Nothing happens.</p> <pre><code>Tabs holder = new Tabs() { public void keyReleased(int keyEvent) { System.out.println("key release is working"); // this statement does not work } }; </code></pre> <p>When i shift tabs by navigating through left and right keys, my lists lose focus (their selection appears faded) and at other times they hold focus (their selection appears solid.) How do I ensure that my lists always have focus? This is very essential for my program to work. I have attached the snapshots. Please assist.</p> <p>Please see the attached pictures.</p> <p>In picture 1, you will see that the list item 3 is highlighted. Now, if I press the left/right/down game keys ...the focus disappears from the list and goes to the tab at 3rd position. I WANT TO PREVENT THIS. (not able to post images cuz am a new user. please check the links)</p> <p><img src="https://i.stack.imgur.com/BSMwG.jpg" alt="enter image description here"></p> <p><img src="https://i.stack.imgur.com/5dYWn.jpg" alt="enter image description here"></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload