protected LayerPane findSelectedPane(){
  for (  LayerPane pane : getPanes()) {
    if (pane.isSelected()) {
      return pane;
    }
  }
  return null;
}

protected LayerPane findSelectedPane ( ) { for ( LayerPane pane : getPanes ( ) ) { if ( pane . isSelected ( ) ) { return pane ; } } return null ; }
find the selected layerpane in the current layerpane list . will return null if there isn ' t a selected pane .
