Good morning!
To the point I have an interface where I show a table with two columns, the first one is Placa and the other is Mileage. What I want to do is to get that according to the value that the Mileage column has in its cell its Background color change Example: Plate: 0001 Mileage: 5000 If Mileage is greater than or equal to 5000 , paint Red. Here I show my table: Here is the code that shows the table:
@Override
public void initialize(URL url, ResourceBundle rb) {
conexion = new Conexion();
conexion.establecerConexion();
informacionAlertas = FXCollections.observableArrayList();
Menu.mostrarTablaAlertasMenu(conexion.getConnection(), informacionAlertas);
tblInformacion.setItems(informacionAlertas);
clmnAlertaPlaca.setCellValueFactory(new PropertyValueFactory<>("AlertaPlaca"));
clmnAlertaKmRest.setCellValueFactory(new PropertyValueFactory<>("AlertaKmRest"));
}