void () { myComponent.removeAll(); myComponent.add(myContentGutter, BorderLayout.CENTER); if (myDetailsEnabled) { myComponent.add(myBanner, BorderLayout.NORTH); } if (myContent != null) { myContentGutter.add(myContent, BorderLayout.CENTER); invalidateContentBorder(); } myComponent.revalidate(); myComponent.repaint(); }