Forum Stats

  • 3,875,106 Users
  • 2,266,805 Discussions
  • 7,912,085 Comments

Discussions

Why to use Unbindbidirection here ?

3249162
3249162 Member Posts: 2
edited Jun 1, 2016 10:49AM in JavaFX 2.0 and Later
import javafx.beans.property.BooleanProperty;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.geometry.Pos;
import javafx.scene.control.CheckBox;
import javafx.scene.control.TableCell;
import javafx.scene.control.TableView;
import javafx.scene.control.TableView.TableViewSelectionModel;


//CheckBoxTableCell for creating a CheckBox in a table cell


    public class CheckBoxTableCell<S, T> extends TableCell<S, T> {


        private final CheckBox checkBox;


        private ObservableValue<T> ov;





        public CheckBoxTableCell() {


            this.checkBox = new CheckBox();


            this.checkBox.setAlignment(Pos.CENTER);





            setAlignment(Pos.CENTER);


            setGraphic(checkBox);


        } 
This discussion has been closed.