title: How does Swing determine which component to give focus to when Tab is pressed?
body: <p>How does Swing determine which component to change focus to when <kbd>Tab</kbd> is pressed? Does it have to do with the order in which the components are declared? Created? Added? Their absolute positions on the screen? Or is there no reliable pattern at all?</p>