Uses of Class java.awt.FocusTraversalPolicy (Java Platform SE 8 )
Date: 2015-11-19

## Uses of Class
java.awt.FocusTraversalPolicy

- Packages that use FocusTraversalPolicy
  Package | Description
  --- | ---
  java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images.
  javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.

- - ### Uses of FocusTraversalPolicy in java.awt

    Subclasses of FocusTraversalPolicy in java.awt
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ContainerOrderFocusTraversalPolicy` A FocusTraversalPolicy that determines traversal order based on the order of child Components in a Container.
    `class` | `DefaultFocusTraversalPolicy` A FocusTraversalPolicy that determines traversal order based on the order of child Components in a Container.

    Methods in java.awt that return FocusTraversalPolicy
    Modifier and Type | Method and Description
    --- | ---
    `FocusTraversalPolicy` | KeyboardFocusManager.`getDefaultFocusTraversalPolicy()` Returns the default FocusTraversalPolicy.
    `FocusTraversalPolicy` | Container.`getFocusTraversalPolicy()` Returns the focus traversal policy that will manage keyboard traversal of this Container's children, or null if this Container is not a focus cycle root.

    Methods in java.awt with parameters of type FocusTraversalPolicy
    Modifier and Type | Method and Description
    --- | ---
    `void` | KeyboardFocusManager.`setDefaultFocusTraversalPolicy(FocusTraversalPolicy defaultPolicy)` Sets the default FocusTraversalPolicy.
    `void` | Container.`setFocusTraversalPolicy(FocusTraversalPolicy policy)` Sets the focus traversal policy that will manage keyboard traversal of this Container's children, if this Container is a focus cycle root.

  - ### Uses of FocusTraversalPolicy in javax.swing

    Subclasses of FocusTraversalPolicy in javax.swing
    Modifier and Type | Class and Description
    --- | ---
    `class` | `InternalFrameFocusTraversalPolicy` A FocusTraversalPolicy which can optionally provide an algorithm for determining a JInternalFrame's initial Component.
    `class` | `LayoutFocusTraversalPolicy` A SortingFocusTraversalPolicy which sorts Components based on their size, position, and orientation.
    `class` | `SortingFocusTraversalPolicy` A FocusTraversalPolicy that determines traversal order by sorting the Components of a focus traversal cycle based on a given Comparator.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved.