private void centrerTable(JTable table) {
		
		((DefaultTableCellRenderer)table.getTableHeader().getDefaultRenderer()).setHorizontalAlignment( JLabel.CENTER );
		table.getTableHeader().setForeground(Color.RED);

		if(table.getRowCount()!=0)
			table.setRowSelectionInterval(0, 0);
		
		DefaultTableCellRenderer custom = new DefaultTableCellRenderer(); 
		custom.setHorizontalAlignment(JLabel.CENTER); 
		for (int i=0 ; i<table.getColumnCount() ; i++) 
			table.getColumnModel().getColumn(i).setCellRenderer(custom); 
	}//