question: public void paintCurrentValue ( Graphics g , Rectangle bounds , boolean hasFocus ) { XPStyle xp = XPStyle . getXP ( ) ; if ( xp != null ) { bounds . x += 2 ; bounds . y += 2 ; bounds . width -= 4 ; bounds . height -= 4 ; } else { bounds . x += 1 ; bounds . y += 1 ; bounds . width -= 2 ; bounds . height -= 2 ; } if ( ! comboBox . isEditable ( ) && xp != null && xp . isSkinDefined ( comboBox , Part . CP_READONLY ) ) { ListCellRenderer renderer = comboBox . getRenderer ( ) ; Component c ; if ( hasFocus && ! isPopupVisible ( comboBox ) ) { c = renderer . getListCellRendererComponent ( listBox , comboBox . getSelectedItem ( ) , - 1 , true , false ) ; } else { c = renderer . getListCellRendererComponent ( listBox , comboBox . getSelectedItem ( ) , - 1 , false , false ) ; } c . setFont ( comboBox . getFont ( ) ) ; if ( comboBox . isEnabled ( ) ) { c . setForeground ( comboBox . getForeground ( ) ) ; c . setBackground ( comboBox . getBackground ( ) ) ; } else { c . setForeground ( DefaultLookup . getColor ( comboBox , this , "ComboBox.disabledForeground" , null ) ) ; c . setBackground ( DefaultLookup . getColor ( comboBox , this , "ComboBox.disabledBackground" , null ) ) ; } boolean shouldValidate = false ; if ( c instanceof JPanel ) { shouldValidate = true ; } currentValuePane . paintComponent ( g , c , comboBox , bounds . x , bounds . y , bounds . width , bounds . height , shouldValidate ) ; } else { super . paintCurrentValue ( g , bounds , hasFocus ) ; } }
target:  If necessary paints the currently selected item.