@Override
	public Component getTableCellRendererComponent(final JTable table, final Object value,
			final boolean isSelected, final boolean hasFocus, final int row, final int column) {

		if (isSelected) {
			super.setForeground(table.getSelectionForeground());
			super.setBackground(table.getSelectionBackground());
		} else {
			super.setForeground(table.getForeground());
			if (MTable.BICOLOR_LINE != null && row % 2 == 0) {
				super.setBackground(MTable.BICOLOR_LINE);
			} else {
				super.setBackground(table.getBackground());
			}
		}

		if (hasFocus) {
			setBorder(BORDER);
		} else {
			setBorder(null);
		}

		setEnabled(table.isCellEditable(row, column));

		if (value instanceof Boolean) {
			final boolean selected = ((Boolean) value).booleanValue();
			this.setSelected(selected);
			// this.setToolTipText(selected ? "vrai" : "false");
			return this;
		}
		final JLabel label = (JLabel) table.getDefaultRenderer(String.class)
				.getTableCellRendererComponent(table, null, isSelected, hasFocus, row, column);
		if (value == null) {
			label.setText(null);
		} else {
			label.setText("??");
		}
		return label;
	}
@ Override public Component getTableCellRendererComponent ( final JTable table , final Object value , final boolean isSelected , final boolean hasFocus , final int row , final int column ) { if ( isSelected ) { super . setForeground ( table . getSelectionForeground ( ) ) ; super . setBackground ( table . getSelectionBackground ( ) ) ; } else { super . setForeground ( table . getForeground ( ) ) ; if ( MTable . BICOLOR_LINE != null && row % 2 == 0 ) { super . setBackground ( MTable . BICOLOR_LINE ) ; } else { super . setBackground ( table . getBackground ( ) ) ; } } if ( hasFocus ) { setBorder ( BORDER ) ; } else { setBorder ( null ) ; } setEnabled ( table . isCellEditable ( row , column ) ) ; if ( value instanceof Boolean ) { final boolean selected = ( ( Boolean ) value ) . booleanValue ( ) ; this . setSelected ( selected ) ; return this ; } final JLabel label = ( JLabel ) table . getDefaultRenderer ( String . class ) . getTableCellRendererComponent ( table , null , isSelected , hasFocus , row , column ) ; if ( value == null ) { label . setText ( null ) ; } else { label . setText ( "??" ) ; } return label ; }
{@inheritDoc}