Class name mismatch in javafx.scene.control.Cell javadoc example

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: 7u25
    • Component/s: javafx

      In the API javadoc for the Cell class (http://docs.oracle.com/javafx/2/api/javafx/scene/control/Cell.html) the following example has a mismatch between the class name and the constructor name:

      --quote--
       Of course, we can also use the binding API rather than overriding the 'update' methods. Shown below is a very trivial example of how this could be achieved.

       public class BoundLabelCell extends ListCell<String> {

           public TextFieldCell() {
               textProperty().bind(itemProperty());
           }
       }
      --quote--

      The constructor name should be changed to BoundLabelCell (or vice versa).

            Assignee:
            Jonathan Giles
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: