private void labelIndicatorSetColorsToDefaultState ( JLabel label ) { if ( label == null || settings == null ) { return ; } if ( label == labelMonth || label == labelYear ) { label . setBackground ( settings . getColor ( DateArea . BackgroundMonthAndYearMenuLabels ) ) ; monthAndYearInnerPanel . setBackground ( settings . getColor ( DateArea . BackgroundMonthAndYearMenuLabels ) ) ; } if ( label == labelSetDateToToday ) { label . setBackground ( settings . getColor ( DateArea . BackgroundTodayLabel ) ) ; } if ( label == labelClearDate ) { label . setBackground ( settings . getColor ( DateArea . BackgroundClearLabel ) ) ; } label . setBorder ( new CompoundBorder ( new EmptyBorder ( 1 , 1 , 1 , 1 ) , labelIndicatorEmptyBorder ) ) ; }
labelIndicatorSetColorsToDefaultState This event is called to set a label indicator to the state it should have when there is no mouse hovering over it .