public void updateUI ( ) { super . updateUI ( ) ; setFont ( Font . decode ( "Dialog Plain 11" ) ) ; if ( weekPanel != null ) { weekPanel . updateUI ( ) ; } if ( initialized ) { if ( "Windows" . equals ( UIManager . getLookAndFeel ( ) . getID ( ) ) ) { setDayBordersVisible ( false ) ; setDecorationBackgroundVisible ( true ) ; setDecorationBordersVisible ( false ) ; } else { setDayBordersVisible ( true ) ; setDecorationBackgroundVisible ( decorationBackgroundVisible ) ; setDecorationBordersVisible ( decorationBordersVisible ) ; } } }
Updates the UI and sets the day button preferences .