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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 7u25
    • 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).

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

              Created:
              Updated:
              Resolved:
              Imported: