private void cleareffectorPanel(){
  if (currentEffectorPanel != null) {
    mainPanel.remove(currentEffectorPanel);
  }
}

private void cleareffectorPanel ( ) { if ( currentEffectorPanel != null ) { mainPanel . remove ( currentEffectorPanel ) ; } }
remove current panel , if any .
