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

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

    Details

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

      Description

      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());
          }

        Attachments

          Activity

            People

            • Assignee:
              rbair Richard Bair
              Reporter:
              rbair Richard Bair
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: