#Focusable

e612. Moving the Focus to the Next or Previous Focusable Component

ThemethodstomovethefocustothenextortothepreviousfocusablecomponentareComponent.transferFocus()andComponent.transferFocusBackward().Thisexamplemodifiesacomponent...
代码星球 ·2021-02-12

e615. Finding the Next Focusable Component

publicComponentfindNextFocus(){//FindfocusownerComponentc=KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner();Containerroot=c==null?null:c.get...