1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| @Override
public Component getTableCellRendererComponent( JTable jTbl, Object oVal, boolean yaselection, boolean yafocus, int l, int c ) {
super.getTableCellRendererComponent( jTbl, oVal, yaselection, yafocus, l, c );
setIcon( null );
if( l > 0 ) // Ligne des adhérents
{
if( oVal.equals( (byte)1 ))
setIcon( icnAttentionO );
else if( oVal.equals( (byte)2 ))
setIcon( icnAttentionR );
// setText(""); // FIXME
}
else // Ligne des statistiques
{
setFont(( c != 1 ? C_Gemo.policeReduite : C_Gemo.policeGrasse ));
setForeground(( btnValide.isEnabled() ? Color.LIGHT_GRAY : Color.BLACK ));
setBackground( Color.CYAN );
}
return this;
} |
Partager