Commit 9877543d authored by Stéphane Moulinet's avatar Stéphane Moulinet
Browse files

Ajout comm. sur l'utilisation de Number

parent 5ae1d58b
......@@ -53,6 +53,7 @@ public class DeplacementController implements Initializable {
new PropertyValueFactory<Deplacement, String>("transport")
);*/
// ATTENTION ! Integer remplacé par Number
// https://fabrice-bouye.developpez.com/tutoriels/javafx/evenement-invalidation-modification-proprietes-expressions-javafx/#LIII-C-2-a
TableColumn<Deplacement,Number> distanceCol = new TableColumn<Deplacement,Number>("Distance");
TableColumn<Deplacement,String> transportCol = new TableColumn<Deplacement,String>("Transport");
distanceCol.setCellValueFactory(cellData -> cellData.getValue().distanceProperty());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment