< prev index next >
modules/controls/src/main/java/javafx/scene/control/Cell.java
Print this page
*** 137,147 ****
* // 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);
* }
* }
* }</pre>
*
* This class could then be used inside a ListView as such:
--- 137,147 ----
* // 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);
* }
* }
* }</pre>
*
* This class could then be used inside a ListView as such:
< prev index next >