Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Sedrick Jefferson
Added: Feb 28, 2018 3:45 PM
Modified: Mar 23, 2018 2:40 PM
Views: 20
ListView Lambda JavaFX
  1. lvKeywordsMasterTable.setCellFactory(lv -> new ListCell<Type>()
  2. {
  3.     @Override
  4.     public void updateItem(Type item, boolean empty)
  5.     {        
  6.         super.updateItem(item, empty);
  7.         if (empty)
  8.         {
  9.             //setText(null);
  10.             //setGraphic(null);
  11.         }
  12.         else
  13.         {
  14.  
  15.         }
  16.     }
  17. });