public void showCentrePane(JComponent component)
    {
        frame.getContentPane().add(component, DesktopAppLayout.CENTER);
        frame.pack();

        centreComponent = component;
    }
public void showCentrePane ( JComponent component ) { frame . getContentPane ( ) . add ( component , DesktopAppLayout . CENTER ) ; frame . pack ( ) ; centreComponent = component ; }
{@inheritDoc}