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

Doc:inconsistent description of MenuButton.items

    XMLWordPrintable

Details

    Description

      Quote (http://docs.oracle.com/javafx/2/api/index.html):
      "As mentioned, like the Menu API itself, you'll find an items ObservableList within which you can provide any type of Node, although it is recommended to only insert controls that extend from MenuItem."

      In contrast to that, items accepts MenuItem elements only:
      public final ObservableList<MenuItem> getItems()

      Attachments

        Activity

          People

            jgiles Jonathan Giles
            wlehmann Werner Lehmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: