Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8127925

Control call to setFocusTraversable make it so focusTraversable cannot be set on a Control via css

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7u6
    • Fix Version/s: 7u6
    • Component/s: javafx

      Description

      Obscure little bug, but this code causes a flag to be set on focusTraversable that indicates the property was set by the user, which means it won't get overriden by css.

          protected Control() {
              setFocusTraversable(true);
          }

      The property should be initialized like so.

          protected Control() {
              StyleableProperty prop = StyleableProperty.getStyleableProperty(focusTraversableProperty());
              prop.set(this, true, null);
          }

        Attachments

          Activity

            People

            Assignee:
            jgiles Jonathan Giles
            Reporter:
            dgrieve David Grieve
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: