this.cdm = cdm;
cdm.addObserver(this);
setLayout(new BorderLayout());
table = new JTable();
table.setModel(new ListePieceModel(cdm));
table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
table.setDefaultRenderer(Object.class, new TableCellRenderer());
table.setDefaultRenderer(Piece.class, new TableCellRenderer());
table.setDefaultRenderer(String.class, new TableCellRenderer());
table.setDefaultRenderer(Boolean.class, new TableCellRenderer());