< prev index next >
modules/javafx.controls/src/main/java/javafx/scene/control/Cell.java
Print this page
@@ -137,11 +137,11 @@
* // background), and if the value is zero, we'll make it black.
* if (item != null) {
* double value = item.doubleValue();
* setTextFill(isSelected() ? Color.WHITE :
* value == 0 ? Color.BLACK :
- * value < 0 ? Color.RED : Color.GREEN);
+ * value < 0 ? Color.RED : Color.GREEN);
* }
* }
* }</pre>
*
* This class could then be used inside a ListView as such:
< prev index next >