question: @ Override protected void paintText ( Graphics tempG , int tabPlacement , Font font , FontMetrics metrics , int tabIndex , String title , Rectangle textRect , boolean isSelected ) { Graphics2D g = ( Graphics2D ) tempG ; g . setRenderingHint ( RenderingHints . KEY_ANTIALIASING , RenderingHints . VALUE_ANTIALIAS_ON ) ; if ( isSelected && tabPlacement == TOP ) { g . setColor ( Color . BLACK ) ; } else { g . setColor ( Color . BLACK ) ; } g . drawString ( title , textRect . x , textRect . y + metrics . getAscent ( ) ) ; }
target:  Selected labels have a white color.