public void loadDefaultLogo ( ) { int pos = 0 ; int size = 18296 ; byte [ ] buffer = new byte [ size ] ; try ( InputStream in = getClass ( ) . getClassLoader ( ) . getResourceAsStream ( "net/lecousin/framework/core/logo_200x200.png" ) ) { do { int nb = in . read ( buffer , pos , size - pos ) ; if ( nb <= 0 ) break ; pos += nb ; } while ( pos < size ) ; } catch ( IOException e ) { // ignore, no logo } if ( pos == size ) setLogo ( new ImageIcon ( buffer ) , false ) ; }
Load the default logo .