/** * Returns an unscaled icon. * * @param key the name of the resource bundle key * @return the icon. */ public Icon getIcon( final String key ) { if ( key == null ) { throw new NullPointerException(); } final String name = strictString( key ); return createIcon( name, false, false ); }
/** * Returns an scaled icon suitable for buttons or menus. * * @param key the name of the resource bundle key * @param large true, if the image should be scaled to 24x24, or false for 16x16 * @return the icon. */ public Icon getIcon( final String key, final boolean large ) { if ( key == null ) { throw new NullPointerException(); } final String name = strictString( key ); return createIcon( name, true, large ); }
/** * Returns an unscaled icon. * * @param key the name of the resource bundle key * @return the icon. */ public Icon getIcon(final String key) { if (key == null) { throw new NullPointerException(); } final String name = strictString(key); return createIcon(name, false, false); }
/** * Returns an scaled icon suitable for buttons or menus. * * @param key the name of the resource bundle key * @param large true, if the image should be scaled to 24x24, or false for * 16x16 * @return the icon. */ public Icon getIcon(final String key, final boolean large) { if (key == null) { throw new NullPointerException(); } final String name = strictString(key); return createIcon(name, true, large); }