Label's showMnemonic state is not reset when labelFor set to null

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • fx2.0
    • Affects Version/s: fx2.0
    • Component/s: javafx
    • None

      The following test fails:


          @Test public void showMnemonicsOfLabelIsSetToFalseWhenLabelForIsCleared() {
              TextField textField = new TextField();
              textField.impl_setShowMnemonics(true);
              label.setLabelFor(textField);
              label.setLabelFor(null);
              assertTrue(textField.impl_isShowMnemonics());
              assertFalse(label.impl_isShowMnemonics());
          }

            Assignee:
            Richard Bair (Inactive)
            Reporter:
            Richard Bair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: