dimanche 12 septembre 2021

CheckBoxTableCell Can't be selected on javaFX

New to JavaFx I created a view table using Scene builder with a table column named checkedCol that's supposed to contain chekboxes , on my controller i created those checkbox this way :

@FXML
private TableColumn<OMission, Boolean> checkedCol; 

  .....

 
checkedCol.setCellFactory(
                            CheckBoxTableCell.forTableColumn(checkedCol)
                        );
                    
checkedCol.setCellValueFactory(new PropertyValueFactory<>("remark"));

On class Model i have this code :

    public class OMission {

         private String ObjMission ;
         private SimpleBooleanProperty  remark;

         public OMission(  String objMission ) {

                 This.objMission = ObjMission ;

                 remark = new SimpleBooleanProperty(false);


         public SimpleBooleanProperty getRemark() {
            return remark;
        }

        public void setRemark(SimpleBooleanProperty remark) {
            this.remark = remark;
        }


        public String getObjMission() {
            return ObjMission;
        }



        public void setObjMission(String objMission) {
            ObjMission = objMission;
        }

}

The problem is i don't get any erros but i can not even select/check the checkboxes i get on my view table , i can't figure out the issue :) any idea ? Thank's in advance .




Aucun commentaire:

Enregistrer un commentaire