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);
  }
}

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 ) ; } }
creates a new instance of statusbar
