(Component tab, Component content)
| 1506 | } |
| 1507 | |
| 1508 | private void initTabFocus(Component tab, Component content) { |
| 1509 | if (content.isFocusable()) { |
| 1510 | tab.setFocusable(true); |
| 1511 | return; |
| 1512 | } |
| 1513 | |
| 1514 | if (content instanceof Container) { |
| 1515 | Component focus = ((Container) content).findFirstFocusable(); |
| 1516 | if (focus != null) { |
| 1517 | tab.setFocusable(true); |
| 1518 | } |
| 1519 | } |
| 1520 | |
| 1521 | } |
| 1522 | |
| 1523 | /// Indicates that a tab should change when the focus changes without the user physically pressing a button |
| 1524 | /// |
no test coverage detected