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).
--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).