Finalement j'ai trouve la reponse a mon pb.
Je met le code pour ceux a qui ca interesserait
Voici ma classe du rendu de mes cellules :
public Component getTableCellRendererComponent(
JTable table, Object val,
boolean isSelected, boolean hasFocus,
int row, int column)
{
setAlignmentX( CENTER_ALIGNMENT );
// s'assure du style de la font
Font f = getFont();
// on met une font differente pour la ligne selectionnee...
if ( isSelected)
{
setFont( new Font( f.getName(), Font.PLAIN|Font.ITALIC, f.getSize() ) );
// gestion des couleur de selection
super.setForeground( ( selectedForeground != null) ? selectedForeground : table.getSelectionForeground() );
super.setBackground( ( selectedBackground != null) ? selectedBackground : table.getSelectionBackground() );
}
// ...et les autres lignes
else
{
setFont( new Font( f.getName(), Font.PLAIN, f.getSize() ) );
if ( ((column)>>1)<<1 == column - (row-((row>>1)<<1)) )
{
super.setForeground( ( unselectedForegroundAlt != null) ? unselectedForegroundAlt : table.getForeground() );
super.setBackground( ( unselectedBackgroundAlt != null) ? unselectedBackgroundAlt : table.getBackground() );
}
else
{
super.setForeground( ( unselectedForeground != null) ? unselectedForeground : table.getForeground() );
super.setBackground( ( unselectedBackground != null) ? unselectedBackground : table.getBackground() );
}
}
// On met dans une autre font la cellule selectionnee
if( isSelected && column==table.getSelectedColumn())
{
setFont( new Font( f.getName(), Font.PLAIN|Font.BOLD|Font.ITALIC, f.getSize() ) );
// gestion des couleur de selection
super.setForeground( ( selectedForeground != null) ? selectedForeground : table.getSelectionForeground() );
super.setBackground( new java.awt.Color(100,190,240) ); // bleu-vert
}
setText( val.toString() );
return this;
}
}
Voila, finalement c'etait plutot simple, fallait juste y penser
