/** * Sets the font which should be used for <code>key</code>. * @param key the key of the font * @param font the new font, can be <code>null</code> */ public void setFont( String key, Font font ){ if( font == null ) setFont( key, (FontModifier)null ); else setFont( key, new ConstantFontModifier( font ) ); }
/** * Sets the font which should be used for <code>key</code>. * @param key the key of the font * @param font the new font, can be <code>null</code> */ public void setFont( String key, Font font ){ if( font == null ) setFont( key, (FontModifier)null ); else setFont( key, new ConstantFontModifier( font ) ); }