public final void addPane(final OptionsPane pane){
  MAIN_PANEL.add(pane.getContainer(),pane.getName());
  OPTIONS_PANE_LIST.add(pane);
}

public final void addPane ( final OptionsPane pane ) { MAIN_PANEL . add ( pane . getContainer ( ) , pane . getName ( ) ) ; OPTIONS_PANE_LIST . add ( pane ) ; }
adds the speficied window to the cardlayout based on its title .
