It is possible to make just some tabs focusable, for instance the first 3 of 5 tabs? So that when changing tabs with the left – right keys, the non-focusable ones to be skipped (to be displayed only by mouse clicks).
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
All Swing components use Actions to handle key events. So you can replace the existing action with a custom Action of your own.
Check out Key Bindings to see the Actions that are defined for a tabbed pane.
You may also find Wrapping Actions and Table Tabbing helpful as they show how you can reuse existing Actions when customizing behaviour.