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

ChoiceBox: initially toggle not sync'ed to selection

    XMLWordPrintable

Details

    Description

      Yet another glitch in ChoiceBoxSkin: in a sequence: select -> attach skin -> find selected toggle no toggle is selected (see test snippet below)

      A failing test case:

          @Test
          public void testBaseToggleInitialSelect() {
              SingleSelectionModel<String> sm = box.getSelectionModel();
              int selectedIndex = box.getItems().size() - 1;
              sm.select(selectedIndex);
              showChoiceBox();
              assertToggleSelected(selectedIndex);
          }

      Attachments

        Issue Links

          Activity

            People

              fastegal Jeanette Winzenburg
              fastegal Jeanette Winzenburg
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: