question: public StatusBar ( boolean showMemory ) { super ( new BorderLayout ( ) ) ; add ( createInfoPanel ( ) , BorderLayout . WEST ) ; if ( showMemory ) { add ( createMemoryStatus ( ) , BorderLayout . CENTER ) ; JPanel iconPanel = new JPanel ( new BorderLayout ( ) ) ; iconPanel . add ( new JLabel ( new AngledLinesWindowsCornerIcon ( ) ) , BorderLayout . SOUTH ) ; add ( iconPanel , BorderLayout . EAST ) ; } else { setBackground ( Color . WHITE ) ; } }
target:  Creates a new instance of StatusBar 